Return Ex, where x is 1
The result will be:
More "Try it Yourself" examples below.
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.
Method | |||||
---|---|---|---|---|---|
exp() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
x | Required. A number |
Return Value: | A Number, representing Ex |
---|---|
JavaScript Version: | 1.0 |
Use the exp() method on different numbers:
The result of a,b, and c will be: