Latest

recent

JavaScript E Property

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
JavaScript E Property Reviewed by 1000sourcecodes on 03:08 Rating: 5
Powered by Blogger.