ExamVeda
Login
Home
This question belongs to Javascript Array And Function
Array and Function
?

Consider the following code snippet
var a1 = [,,,]; 
var a2 = new Array(3); 
0 in a1 
0 in a2
The result would be

Answer & Solution
Correct Answer: Option A
a1 has an element with index 0 and a2 has no element with index 0.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.