If you want to find the hyperbolic tangent value of a given argument in JavaScript, then use the Math.tanh() method is used. Javascript tanh() method comes handy in programming contexts dealing with any trigonometric expressions. The tanh() is a static method of Math, and it can be used without creating an object.

JavaScript Math tanh()

Javascript tanh() is a static method of Math, and it can be used without creating an object.

Syntax

Math.tanh(x)

#javascript

JavaScript Math.tanh() Function Example
1.40 GEEK