πŸ“Š JavaScript
Q. What will be the output of the following JavaScript code?
Code:
<script>
	var x = 5;
	document.getElementById("demo").innerHTML = x--;
</script>
  • (A) 5
  • (B) 4
  • (C) TypeError
  • (D) ValueError
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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