JS Built-ins
← Math186 / 215
Mathsinbeginner

Math.sin() β€” sin(0) = 0

πŸ“– Usage Example
// Sine of an angle in radians
Math.sin(0)            // β†’ 0
Math.sin(Math.PI / 2)  // β†’ 1

Use Math.sin() to compute the sine of an angle in radians for trigonometry and wave simulations.

Math.sin()

Returns the sine of a number (in radians).

Challenge: Verify that Math.sin(0) returns 0.

πŸ’‘ Hints (1)
  • β€’ sin(0) = 0 β€” the sine of 0 radians is exactly 0