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