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]);
β
Correct Answer: (A)
for (var i = 1;i<a.length;i++) console.log(a[i]);
for(var p in o) console.log(o[p]);
You must be Logged in to update hint/solution