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

Code:
< p id="demo">< /p>
< script>
var a = 20;
var b = "30";
document.getElementById ("demo").innerHTML = x + y;
< /script>
  • (A) 50
  • (B) 20+30
  • (C) 2030
  • (D) error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2030

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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