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