Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Math</h2> <p>Math.expm1(x) returns the value of E<sup>x</sup> minus 1:</p> <p id="demo"></p> <script> let a = Math.expm1(1); let b = Math.expm1(-1); let c = Math.expm1(5); let d = Math.expm1(10); document.getElementById("demo").innerHTML = a + "<br>" + b + "<br>" + c + "<br>" + d; </script> </body> </html>