JavaScript Math LOG2E
Description
The Math.LOG2E
property returns the base-2 logarithm of E.
The Math.LOG2E
property returns approximately 1.442.
JavaScript Logarthmic Functions:
The Math.log() MethodThe Math.log2() Method
The Math.log10() Method
The Math.log1p() Method
Logarthmic Properies:
The Math.LN2 PropertyThe Math.LN10 Property
The Math.LOG2E Property
The Math.LOG10E Property
Exponential Functions:
The Math.E Property (Euler's Number)The Math.exp() Method
The Math.expm1() Method
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 |