<html>
<body>
<h1>JavaScript Math</h1>
<h2>The Math.log() Method</h2>
<p>Math.log() returns the natural logarithm (base E) of a number:</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Math.log(2);
</script>
</body>
</html>