मैथ ऑब्जेक्ट का टैन () फ़ंक्शन एक कोण (रेडियन में) स्वीकार करता है और उसका स्पर्शरेखा मान देता है।
सिंटैक्स
इसका सिंटैक्स इस प्रकार है
Math.tan(90)
उदाहरण
<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