What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> var x = 5; var y = 2; var z = x % y; document.getEle

What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
var x = 5;
var y = 2;
var z = x % y;
document.getElementById("demo").innerHTML = z;
</script>
A. 0
B. 1
C. 2
D. 5
 

Tìm kiếm

Back
Top