84
JavaScript Math exp() method
The JavaScript math exp() method returns the exponential form of the given number i.e. ex. Here, x is the argument and e is the base of natural algorithms.
Syntax
The exp() method is represented by the following syntax:
Parameter
num – A number.
Return
The number in the form of ex.
JavaScript Math exp() method example
Here, we will understand exp() method through various
Example 1
Let’s see an example to print the given value in the form of ex.
Output:
2.718281828459045 148.4131591025766 0.006737946999085467
Example 2
Here, you can test exp() method with your own test cases.
Next TopicJavaScript Math