Home >>JavaScript Math Reference >JavaScript E Property

JavaScript E Property

JavaScript E Property

JavaScript E property is used to return the Euler's number and the base of natural logarithms. It’s value is approximately 2.718.



Browser Support

Property Chrome Edge Firefox Safari Opera
E Yes Yes Yes Yes Yes

Here is an example of JavaScript E property:

<p>Click the button to see the Output.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
function myFunction() {
  document.getElementById("demo").innerHTML = Math.E;

Click the button to see the Output.