Math.exp Function in JavaScript

 
math.exp function in javascript returns e raised to a power.
You can use this like :
Math.exp(number)
where number is a numeric expression representing the power of e.

Note: constant e is Euler’s number, approximately equal to 2.71828 and number is the supplied argument.

<html>
  <body>
    <script language="JavaScript">
       <!--
          function CalculateResult(){
          var Number1=document.form1.txtNumber1.value; 
          var result = Math.exp(Number1);
          document.form1.answer.value = result;
          }
      -->
    </script>
    <form name=form1>
     Enter power of e:
    <input type="text" name="txtNumber1">
    <br>    
    <input type="button" value="Calculate" onClick='CalculateResult()'>
    <br>
     result :
    <input type="text" name="answer" size=10>
    </form>
  </body>
</html>