Sail E0 Webinar
Question
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 ?
Options:
A .  Prints the contents of each property of o
B .  Returns undefined
C .  All of the mentioned
D .  None of the mentioned
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers