Return Ex, where x is 1
The result will be:
The exp() method returns the value of Ex, where E is Euler's number (approximately 2.7183) and x is the number passed to it.
![]()
The exp() method is supported in all major browsers.
| Parameter | Description |
|---|---|
| x | Required. A number |
| Type | Description |
|---|---|
| Number | A Number, representing Ex |
| JavaScript Version: | 1.0 |
|---|
Use the exp() method on different numbers:
The result of a,b, and c will be:
JavaScript Math Object
Your message has been sent to W3Schools.