JS Built-ins
← Math83 / 215
Mathcbrtbeginner

Math.cbrt(0) Equals Zero

πŸ“– Usage Example
// Cube root β€” works with negatives too
Math.cbrt(27)   // β†’ 3
Math.cbrt(-8)   // β†’ -2

Use Math.cbrt() to find the cube root of any real number, including negative values.

Math.cbrt(x)

Math.cbrt(0) returns 0.

Challenge: Verify that the cube root of zero is zero.

πŸ’‘ Hints (2)
  • β€’ 0Β³ = 0, so cbrt(0) = 0
  • β€’ The cube root function passes through the origin