Hương Trang
New member
What will be the output of the following JavaScript code?
A. 2.00
B. 2.10
C. 2.20
D. 2.30
Code:
<p id="demo"></p>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML = Math.LN10;
}
</script>
B. 2.10
C. 2.20
D. 2.30