The JavaScript math exp() method is used to get the exponential form of a number.
Syntax:
Math.exp(n)
Parameters
n: It represents the number whose exponential value have to be get.
Returns
Exponential value of a number
Example
<!DOCTYPE html> <html> <body> <script> document.writeln(Math.exp(0)); </script> </body> </html> |
Output
1 |
Please Share