Q. Which one of the following options is the correct output for the given code of javascript?
Code:
var values=[4,5,6,7] varans=values.slice(1); document.writeln(ans);
β
Correct Answer: (A)
Error