Home / Programming MCQs / JAVA MCQs / Question

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Consider the following code snippet.
The code is equivalent to which code?

Code:
for(var n in m)
   console.log(m[n]);
(A) for (var i = 1;i < a.length;i++) console.log(a[i]);
(B) for (var i = 0;i < a.length;i++) console.log(a[i]);
(C) for (int i = 0;i < a.length;i++) console.log(a[i]);
(D) for (var i = 0;i <= a.length;i++) console.log(a[i]);

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.