Math ऑब्जेक्ट का tanh() फंक्शन एक कोण (रेडियंस में) स्वीकार करता है और उसका हाइपरबोलिक टैंजेंट मान लौटाता है।
सिंटैक्स
इसका सिंटैक्स निम्नानुसार है:
Math.tanh(x)
उदाहरण
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.tanh(90); document.write("Hyperbolic tangent value of the given angle: "+result); </script> </body> </html>
आउटपुट
Hyperbolic tangent value of the given angle: 1