Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript E Property

JavaScript E Property

Math Object Reference JavaScript Math object

Example

Return Euler's number:

Math.E;

Output result:

2.718281828459045

Try it »


Definition and Usage

The Math.E property represents the arithmetic constant e, the base of the natural logarithm, which is approximately 2.718.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All browsers support the E property.


Syntax

Math.E

Technical Details

Return Value: A number representing Euler's number
JavaScript version: 1.0

Math Object Reference JavaScript Math object