Javascript - Math LOG2E Property

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

Description

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

Syntax

Math.LOG2E

Return

A Number, representing the base-2 logarithm of E

Example

Return the base-2 logarithm of E:

Demo

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

Result