JS Built-ins
← Math81 / 215
Mathcbrtbeginner

Math.cbrt(27) Equals 3

πŸ“– 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)

Returns the cube root of a number. Math.cbrt(27) returns 3.

Challenge: Use Math.cbrt() to find the cube root of 27.

πŸ’‘ Hints (2)
  • β€’ 3Β³ = 27, so cbrt(27) = 3
  • β€’ Math.cbrt() is the inverse of cubing a number