JavaScript (ES2026) reference · Math Methods and Constants

JavaScript Math.E Property

Euler's number, the base of natural logarithms, approximately 2.71828.

JavaScript (ES2026) Since ES1

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

Math.E

Return value

2.718281828459045

Examples

The valueTry it yourself
console.log(Math.E, Math.log(Math.E));

Output

2.718281828459045 1
The limit that defines eTry it yourself
console.log((1 + 1 / 1e6) ** 1e6);

Output

2.7182804690957534

Version history

VersionChange
JavaScript ES1Added

Was this page helpful?