What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> var x = "100"; var y = "10"; var z = x * y;

Ngô Thị Vân

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

Tìm kiếm

Back
Top