Ngô Thị Vân
New member
What will be the output of the following JavaScript code?
A. 1000
B. 10
C. 10010
D. Error
Code:
<p id="demo"></p>
<script>
var x = "100";
var y = "10";
var z = x * y;
document.getElementById("demo").innerHTML = z;
</script>
B. 10
C. 10010
D. Error