Home >>JavaScript Math Reference >JavaScript sinh() Method

JavaScript sinh() Method

JavaScript sinh() Method

JavaScript Math.sinh() method is a static method returns the hyperbolic sine of the given number. It is an inbuilt method in JavaScript and you always used it as math.sin(), rather than as a method of a math object created. This method only accept a single parameter x is a number for which the hyperbolic sine value is going to be calculated.

Syntax:
Math.sinh(x)

Parameter Values

Parameter Description
x It required a Number

Browser Support

Method Chrome Edge Firefox Safari Opera
sinh() 38 12 25 8 25
Here is an example of JavaScript sinh() Method:
<html>
<body>
<button onclick="mysinh()">click me</button>
<p id="sinh"></p>
<script>
function mysinh()
{
  document.getElementById("sinh").innerHTML = Math.sinh(6);
}
</script>
</body>
</html>
Output:

Example 2:
<html>
<body>
<script> 
document.write(Math.sinh(0) + "<br>"); 
document.write(Math.sinh(2) + "<br>"); 
document.write(Math.sinh(4) + "<br>"); 
document.write(Math.sinh(25) + "<br>"); 
document.write(Math.sinh(-3) + "<br>"); 
document.write(Math.sinh(8)); 
</script> 
</body>
</html>
Output:

No Sidebar ads