JavaScript Math.sin()
JavaScript Math.sin()
The Math.sin() method is used to return the sine of an angle which is given in radians. Its return value ranges from -1 to 1. It measures the angle of the amount of rotation from the initial side to the terminal side. Therefore, we can say that one revolution is 2* PI OR 360o.
Syntax:-
Its syntax is:- Math.sin(x)
Return:-
Its return is:- 1 to -1 sine of the number
Further Explanation:-
Parameter | Description |
---|---|
x | Required. The number represents an angle in radians. |