The LOG2E property returns the base-2 logarithm of E, approximately 1.442.

Math.LOG2E

A Number, representing the base-2 logarithm of E

Return the base-2 logarithm of E:

//display the base-2 logarithm of E. console.log(Math.LOG2E);