cosbeginner// Cosine of an angle in radians
Math.cos(0) // β 1
Math.cos(Math.PI) // β -1Use Math.cos() to compute the cosine of an angle (in radians) for trigonometry and graphics.
Math.cos() always returns a value of type number for any input.
Challenge: Verify the return type of Math.cos() for various inputs.