Name

Math.exp() — compute e x

Synopsis

Math.exp(x)

Arguments

x

A numeric value or expression to be used as the exponent.

Returns

e x , e raised to the power of the specified exponent x, where e is the base of the natural logarithm, with a value of approximately 2.71828.

Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.