JavaScript Math.acos()
JavaScript Math.acos()
The Math.acos() method is used to return the arccosine of a number as a value between 0 and PI radians. It will return PI when the value is -1.
Syntax:-
Its syntax is:- Math.acos(x)
Return:-
Its return is:- 0 to PI
Further Explanation:-
Parameter | Description |
x | Required. A number. |