V

Vishal Gupta • 7.73K Points
Tutor III

Q. Consider the following code snippet.
What will the above code snippet result ?

Code:
function output(n) 
{
    for(var v in n)
      console.log(v + ": " + n[v] + "\n");
}
  • (A) prints only one property
  • (B) Prints the contents of each property of n
  • (C) prints the address of elements
  • (D) Returns undefined

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.