目录

JavaScript Math LOG2E

Example

let x = Math.LOG2E;
Try it Yourself »

Description

The Math.LOG2E property returns the base-2 logarithm of E.

The Math.LOG2E property returns approximately 1.442.



Syntax

Math.LOG2E

Return Value

Type Description
Number The base-2 logarithm of E.


Browser Support

Math.LOG2E is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes