English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.tanh() Method

 JavaScript Math Object

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

Since tanh() is a static method of Math, you always use it asMath.tanh(), rather than as a method of the created Math object.

Syntax:

Math.tanh(x)
Math.tanh(1);
Test and See‹/›

Browser Compatibility

All browsers fully support the Math.tanh() method:

Method
Math.tanh()YesYesYesYesYes

Parameter Value

ParameterDescription
xValue

Technical Details

Return Value:Hyperbolic Tangent Value of Given Number
JavaScript Version:ECMAScript 1

 JavaScript Math Object