sinintermediate// Sine of an angle in radians
Math.sin(0) // β 0
Math.sin(Math.PI / 2) // β 1Use Math.sin() to compute the sine of an angle in radians for trigonometry and wave simulations.
Returns the sine of a number (in radians).
Challenge: Observe that Math.sin(Math.PI) returns a value very close to 0 (floating-point approximation).