Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Math</h1>
<h2>The Math.log2() Method</h2>
<p>The Mat.log2() method returns the base 2 logarithm of a number:</p>
<p id="demo"></p>
<script>
let x = Math.log2(3);
document.getElementById("demo").innerHTML = x;
</script>
</body>
</html>