πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 10 , [object Undefined]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
191
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate