JS Built-ins
← Math84 / 215
Mathcbrtbeginner

Math.cbrt(1) Equals 1

πŸ“– 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(1) returns 1.

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

πŸ’‘ Hints (2)
  • β€’ 1Β³ = 1, so cbrt(1) = 1
  • β€’ Like square root, the cube root of 1 is 1