Math.sin method
The Math.sin method returns
the sine of a number (this number
must be an angle in radians).
Syntax
javascriptMath.sin(number);
Example
Let's output the sine of
the number 7:
javascriptconsole.log(Math.sin(7));
The code execution result:
javascript0.6569865987187891
See also
-
the
Math.cos method
that returns the cosine of a number
-
the
Math.tan method
that returns the tangent of a number
-
the
Math.asin method
that returns the arcsine of a number
-
the
Math.acos method
that returns the arccosine of a number
-
the
Math.atan method
that returns the arctangent of a number