Q. 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 ?
β
Correct Answer: (B)
Returns undefined
Explanation: The above code snippet returns undefined.