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