Math exp() Method

Math exp Method
Math.exp() Method return the value of EX , where E is Euler’s number (approximately 2.7183) and x is the number passed to it base of the natural logarithms.

Syntax:
Math.exp(x)

Example:
<script>
    var one = Math.exp(1);
    document.writeln('Output of 1 is : ' + one + '</br></br>');
    var two = Math.exp(90);
    document.writeln('Output of 90 is : ' + two + '</br></br>');
    var three = Math.exp(-1);
    document.writeln('Output of -1 is : ' + three + '</br></br>');
    var four = Math.exp(.5);
    document.writeln('Output of .5 is : ' + four + '</br></br>');
</script>

Output:
Output of 1 is : 2.718281828459045

Output of 90 is : 1.2204032943178408e+39

Output of -1 is : 0.36787944117144233

Output of .5 is : 1.6487212707001282
Copyright Labw3