Math.exp Function in JavaScript

math.exp function in javascript returns e raised to a power.
You can use this like :
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.

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