What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> document.getElementById("demo").innerHTML =

Ngô Thị Vân

New member
What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Math.floor(4.7);
</script>
A. 4.5
B. 4
C. 4.7
D. 5
 

Tìm kiếm

Back
Top