Which one of the given code will be equivalent for the following JavaScript code:
for(var p in o)
console.log(o[p]);
a) Code A
for (var i = 1;i<a.length;i++)
console.log(a[i]);
b) Code B
for (var i = 0;i<a.length;i++)
console.log(a[i]);
C) Code C
for (int i = 0;i<a.length;i++)
console.log(a[i]);
d) Code D
for (var i = 0;i<= a.length;i++)
console.log(a[i]);