Last Updated : 23 Jul, 2025
The Math.E is a property in JavaScript that simply returns the value of Euler's Number, which is nothing but just has a base of the natural logarithm. Its value is approximately around of 2.71828.
Syntax:Math.E;Return Values:
Math.E ≈ 2.718
Example 1: Below is an example of the Math E Property.
JavaScript
Example 2: The value of the base of the natural logarithm can be printed in the form of a function as shown below.
JavaScript
// function is being called.
function value() {
return Math.E;
}
// Calling Function.
console.log(value());
Example 3: We consider Math.E is a function but in actuality, it is a property which is why the error as output is being shown.
JavaScript
Output:
Error: Math.LN2 is not a function
Note: Check the console for errors.
Related Articles: Javascript Math Object Complete reference
Supported Browsers:RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4