THE WORLD'S LARGEST WEB DEVELOPER SITE

JavaScript tanh() Method

❮ JavaScript Math Object

Example

Return the hyperbolic tangent of a number:

Math.tanh(1);
Try it Yourself »

Definition and Usage

The tanh() method returns a number that represents the hyperbolic tangent of a number.


Browser Support

Method
tanh() 38 12 25 8 25

Syntax

Math.tanh(x)

Parameter Values

Parameter Description
x Required. A number


Technical Details

Return Value: A Number
JavaScript Version: ECMAScript 6

❮ JavaScript Math Object