The Math.exp() function returns ex, where x is the argument, and e is the base of the natural logarithms.
Math.exp(x) // x is a number.
let a = Math.exp(-1); // 0.36787944117144233
console.log(a);/*fromwww.java2s.com*/
a = Math.exp(0); // 1
console.log(a);
a = Math.exp(1); // 2.718281828459045
console.log(a);