πŸ“Š JavaScript
Q. What is the output of the following JavaScript code?
Code:
<script>
	var a = 10 + 20 + "5";
	document.getElementById("demo").innerHTML = a;
</script>
  • (A) 35
  • (B) 305
  • (C) TypeError
  • (D) ValueError
πŸ’¬ Discuss
βœ… Correct Answer: (B) 305

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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