A

Admin • 833K Points
Coach

Q. Which one of the following options is the correct output for the given code of JavaScript?

Code:
<script>
functionprintprops(o)
{
for(var ain o)
console.log(a+": "+ o[a]+"
");
}
</script>
  • (A) Prints the contents of each property of o
  • (B) Prints the address of elements
  • (C) Prints only one property
  • (D) Returns undefined
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

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.

Be the first to start discuss.