JavaScript math cosh() method

The JavaScript math cosh() method is used to get the hyperbolic cosine of the given number.
Syntax:

Math.cosh(n)

Parameters
n: It represents the number whose hyperbolic cosine has to be get.

Returns
Hyperbolic cosine value of a number

Example:

<!DOCTYPE html>
<html>
<body>
<script>
document.writeln(Math.cosh(0));
</script>
</body>
</html>