tanadvanced// 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: Observe that Math.tan(Math.PI) returns a value very close to 0 (floating-point approximation).