English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.exp() Method

 JavaScript Math Object

Math.exp()The method returns e X, where x is the independent variable and e is the Euler number (also known as Napier's constant), the base of the natural logarithm.

Since exp() is a static method of Math, you always use it asMath.exp(), not used as a method of the created Math object.

Syntax:

Math.exp(x)
Math.exp(1);
Math.exp(0);
Math.exp(-1);
Test See‹/›

Browser Compatibility

All browsers fully support the Math.exp() method:

Method
Math.exp()isisisisis

Parameter Value

ParameterDescription
xNumeric

Technical Details

Return value:represents e xof the number, where e is the Euler number and x is the independent variable
JavaScript Version:ECMAScript 1

 JavaScript Math Object