Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Math.log()</h2> <p>Math.log() returns the natural logarithm of a number:</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = Math.log(2); </script> </body> </html>