tanbeginner// Tangent of an angle in radians
Math.tan(0) // β 0
Math.tan(Math.PI / 4) // β 1Use Math.tan() to compute the tangent of an angle in radians for trigonometry and slope calculations.
Returns the tangent of a number (in radians).
Challenge: Confirm that Math.tan() always returns a JavaScript number.