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

Duyên Trương

New member
What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
function myFunction() 
{
    document.getElementById("demo").innerHTML = Math.abs(-7.25);
}
</script>
A. 7.25
B. -7.25
C. 7
D. -7
 

Tìm kiếm

Back
Top