Q4
Single choice
Given the following JavaScript code:
var x;
x = 6;
document.getElementById("demo").innerHTML = x;
What happens when this code is executed?