Definition and Usage The E property returns the Euler's constant and the base of natural logarithms, approximately 2.718. Syntax ...
Definition and Usage
The E property returns the Euler's constant and the base of natural logarithms, approximately 2.718.Syntax
Math.E |
Example
<script type="text/javascript"> document.write("Euler's constant: " + Math.E); </script> |
The output of the code above will be:
Euler's constant: 2.718281828459045 |