JavaScript Math.cosh()
Definition and Usage
The Math.cosh() method returns the hyperbolic cosine of a 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).
Syntax
Math.cosh(x)
Parameters
Parameter | Description |
---|---|
x | Required. A number. |
Return Value
A number. |