JavaScript Tutorial/Math/exp
Math.exp()
Syntax math.exp(num) Description calculate an exponent where the base is Euler"s constant (the base of the natural logarithms).
<source lang="javascript">
<html>
<body> <script language="JavaScript"> </script> <form name=form1> Enter First Number: <input type="text" name="input" size=10> <input type="button" value="Calculate" onClick="doMath()">
The exponent is: <input type="text" name="answer" size=10> </form> </body> </html></source>