?
Consider the following code snippet
Consider the following code snippet
function printprops(o)
{
for(var p in o)
console.log(p + ": " + o[p] + "n");
}
What will the above code snippet result ?
function printprops(o)
{
for(var p in o)
console.log(p + ": " + o[p] + "n");
}
Answer & Solution
Correct Answer:
Option
B
The above code snippet returns undefined.
Join the Discussion
Login to post a comment or share your explanation.
Login