JavaScript Maathlog2()

Math.log2() returns the base 2 logarithm of a number.