目录

JavaScript Math.cosh()

Example

Math.cosh(3)
Try it Yourself »

Description

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
Number The 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).