Math.cos method
The Math.cos method returns the
cosine of a number (this number must
be an angle in radians).
Syntax
Math.cos(number);
Example
Let's output the cosine of
the number 34:
console.log(Math.cos(34));
The code execution result:
-0.8485702747846052