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

Hương Trang

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.LN10;
}
</script>
A. 2.00
B. 2.10
C. 2.20
D. 2.30
 

Tìm kiếm

Back
Top