A

Admin • 833K Points
Coach

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);
  • (A) Error
  • (B) 5, 6, 7
  • (C) 4, 5, 6,
  • (D) 4, 5, 6, 7
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.