A

Admin • 833K Points
Coach

Q. Which one of the given code will be equivalent for the following JavaScript code:

Code:
for(var p in o)
console.log(o[p]);
  • (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]);
  • Correct Answer - Option(A)
  • Views: 20
  • 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.