Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:var values=["Three","two","one"]; varans=values.shift(); document.writeln(ans);
β
Correct Answer: (C)
three
var values=["Three","two","one"]; varans=values.shift(); document.writeln(ans);
You must be Logged in to update hint/solution