CodesJava

Easy learning with example program codes

JavaScript math exp() method

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 follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status