cbrtbeginner// Cube root β works with negatives too
Math.cbrt(27) // β 3
Math.cbrt(-8) // β -2Use Math.cbrt() to find the cube root of any real number, including negative values.
Unlike square roots, cube roots of negative numbers are real. Math.cbrt(-8) returns -2.
Challenge: Use Math.cbrt() on a negative number.