Favorites

JavaScript Math.E Property

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Math.E
JavaScript Math Static propertyThis property is supported by all modern browsers.
Updated 28th November 2026

Math.E is Euler's number, the base of natural logarithms, approximately 2.718.

Description

The Math.E static property is Euler's number, e, approximately 2.718281828459045, the base of natural logarithms. It appears in growth and decay calculations such as compound interest. Math.exp(x) is the same as Math.E ** x.

Related constants include Math.LN2 and Math.LN10, the natural logarithms of 2 and 10, and Math.LOG2E and Math.LOG10E, which help convert between logarithm bases. All of them are read-only properties of the Math object.

In everyday code you'll mostly meet e through Math.exp() and Math.log(), for example in easing functions for animations, continuous compound interest and probability calculations.

Syntax

Math.E

Value

About 2.718.

Example

console.log(Math.E);
console.log(Math.log(Math.E));
console.log(Math.exp(1) === Math.E);

Browser Support

The following information will show you the current browser support for the Math.E property. Hover over a browser icon to see the version that first introduced support for this property.

This property is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee