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

Trương Duy

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.cbrt(125);
}
</script>
A. 125
B. 25
C. 5
D. Error
 

Tìm kiếm

Back
Top