JavaScript tanh() method
- Previous Page tan()
- Next Page trunc()
- Go to the Previous Level JavaScript Math Reference Manual
Definition and usage
tanh()
The method returns a number that represents the hyperbolic tangent of a number.
Syntax
Math.tanh(x)
Parameter value
Parameter | Description |
---|---|
x | Required. Number. |
Technical details
Return value: | Number. |
---|---|
JavaScript Version: | ECMAScript 6 |
Browser Support
Method | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
tanh() | 38 | 12 | 25 | 8 | 25 |
Related Pages
Tutorial:JavaScript Math
- Previous Page tan()
- Next Page trunc()
- Go to the Previous Level JavaScript Math Reference Manual