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

Code:
<script>
    let x = 10;
    
    document.write(typeof x, " , ", typeof String(x));
</script>
  • (A) number , string
  • (B) number , number
  • (C) object , string
  • (D) object , object
πŸ’¬ Discuss
βœ… Correct Answer: (A) number , string

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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