JavaScript SINH

The JavaScript SINH function is a Math function, which is used to calculate the trigonometry hyperbolic Sine for the specified expression. The syntax of the SINH Function in JavaScript is:

Math.sinh(number);
(Math.exp(number) - Math.exp(- number)) / 2

JavaScript SINH Function Example

In this SINH example, We find the hyperbolic Sine values for different data types and display the output

HINT: Use JavaScript EXP Function in JavaScript to deliver the same SINH result.

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript SINH() Function </title>
</head>
<body>
  <h1> JavaScript SINH Function </h1>
  <p id = "Pos"></p>
  <p id = "Neg"></p>
  <p id = "Dec"></p>
  <p id = "Neg_Dec"></p>
  <p id = "Str"></p>
  <p id = "Exp"></p>
  <p id = "Null"></p>
  <p id = "Multi"></p>
  <script>
    document.getElementById("Pos").innerHTML = Math.sinh(1);
    document.getElementById("Neg").innerHTML = Math.sinh(-2);
    document.getElementById("Dec").innerHTML = Math.sinh(4.45);
    document.getElementById("Neg_Dec").innerHTML = Math.sinh(-2.75);
    document.getElementById("Str").innerHTML = Math.sinh("JavaScript");
    document.getElementById("Null").innerHTML = Math.sinh(null);
    document.getElementById("Multi").innerHTML = Math.sinh(2 + 9 - 7);
  </script>
</body>
</html>
JavaScript SINH Function