Q. What will be the output of the following JavaScript code?
Code:
<script>
var x = 5;
document.getElementById("demo").innerHTML = x--;
</script>
β
Correct Answer: (B)
4