Parameters or Arguments
number The number used as the exponent in enumber where e is the base of natural logarithms.
The exp() function returns enumber the place e is the base of herbal logarithms and wide variety is the exponent used in the calculation. The mathematical regular e has an approximate price of 2.71828.
Math is a placeholder object that incorporates mathematical functions and constants of which exp() is one of these functions.
console.log(Math.exp(0)); console.log(Math.exp(1)); console.log(Math.exp(-2));
In this example, we have invoked the exp() function using the Math class.
We have written the output of the exp() characteristic to the net browser console log, for demonstration purposes, to show what the exp() characteristic returns.
The following will be output to the web browser console log:
1 2.718281828459045 0.1353352832366127
In this example, the first output to the console log lower back 1 which is the calculation of e0.
The second output to the console log again 2.718281828459045 which is the calculation of e1.
The 1/3 output to the console log lower back 0.1353352832366127 which is the calculation of e-2.