<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 a = Math.log2(2);
let b = Math.log2(4);
let c = Math.log2(8);
let d = Math.log2(16);
let e = Math.log2(32);
let f = Math.log2(64);
document.getElementById("demo").innerHTML =
a + "<br>" + b + "<br>" + c + "<br>" + d + "<br>" + e + "<br>" + f;
</script>
</body>
</html>