R

Ram Sharma • 193.88K Points
Coach

Q. What will be the output of the following JavaScript code?

Code:
<script>
let x = 10;

document.write(x, " , ", toString(x));
</script>
  • (A) 10 , 10
  • (B) 10 , undefined
  • (C) 10 , [object Undefined]
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 157
  • Filed under category JavaScript

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.


Question analytics