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.
Returns the cosine of a number (in radians). Math.cos(0) returns 1.
Challenge: Use Math.cos() and verify its result for input 0.