JavaScript Math cosh() Method

The Math.cosh() method returns the hyperbolic cosine of a number

Definition and Usage

The Math.cosh() method returns the hyperbolic cosine of a number.

Syntax

Math.cosh(x)

Parameters

Parameter Description
x Required.
A number.

Return Value

Type Description
NumberThe hyperbolic cosine of the number.

Browser Support

Math.cosh() is an ECMAScript6 (ES6) feature.

ES6 (JavaScript 2015) is supported in all modern browsers:

Chrome Edge Firefox Safari Opera
Yes Yes Yes Yes Yes
Math.cosh() is not supported in Internet Explorer 11 (or earlier).