How to get the sine of a number in JavaScript?

JavascriptWeb DevelopmentFront End Technology

To get the sine of a number, use the JavaScript sine() technique. The sin technique returns a numeric value between -1 and one, that represents the sine of the argument


You can try to run the following code to get the sine of a number in JavaScript −

      <title>JavaScript Math sin() Method</title>
         var value = Math.sin( 0.5 );
         document.write("First Value : " + value );
         var value = Math.sin( 90 );
         document.write("<br>Second Value : " + value );
Published on 16-Feb-2018 11:51:37