What will be the output of the following JavaScript code? [code] function printprops(o) { for(var p in o) console.log(p + ":

What will be the output of the following JavaScript code?
Code:
function printprops(o) 
{
    for(var p in o)
      console.log(p + ": " + o[p] + "\n");
}
A. Prints the contents of each property of o
B. Returns undefined
C. Prints only one property
D. Prints the address of elements
 

Tìm kiếm

Back
Top