Math.exp

exp — Returns Math.E raised to a power.

Description

Math.exp(number power)

Parameters

Name Description Type Default Optional
power number No

Examples

Example #1 – exp example
console.log(Math.exp(0)); // 1 console.log(Math.exp(0.5)); // 1.6487212707001282 console.log(Math.exp(1)); // 2.718281828459045 console.log(Math.exp(-1)); // 0.3678794411714424 console.log(Math.exp(3)); // 20.085536923187668

External references