Q. What will be the output of following Javascript code:
Code:
var a = [1,2,3,4,5]; a.slice(0,3);
β
Correct Answer: (A)
Returns [1,2,3]
var a = [1,2,3,4,5]; a.slice(0,3);
You must be Logged in to update hint/solution