JavaScript Tutorial/Math/E

Материал из Web эксперт
Перейти к: навигация, поиск

Math.E

The E property gets the value of Euler"s constant. This is approximately 2.718.



   <source lang="javascript">

<html>

   <body>
   <script language="JavaScript">
   
   </script>
   <form name=form1>
   Click on the button to get Euler"s constant.
   

Euler"s constant is: <input type="text" name="answer" size=20> <input type="button" value="Calculate" onClick="doMath()">
</form> </body> </html></source>

The value of Euler"s constant: Math.E

   <source lang="javascript">

<html> <head> <title>The Properties of the Math object</title> <script type="text/javascript" language="javascript">

</script> </head> <body onload="DisplayMath()"> </body> </html></source>