• JavaScript Video Tutorials

JavaScript - Math E Property



Description

This is an Euler's constant and the base of natural logarithms, approximately 2.718.

Syntax

Its syntax is as follows −

Math.E

Example

Try the following example program.

<html>   
   <head>
      <title>JavaScript Math E Property</title>
   </head>
   
   <body>   
      <script type = "text/javascript">
         var property_value = Math.E
         document.write("Property Value is :" + property_value);
      </script>      
   </body>
</html>

Output

Property Value is :2.718281828459045
javascript_math_object.htm
Advertisements