Skip to main content
Version: 3.27.2

Math.cbrt()

The Math.cbrt() function returns the cube root of a number.

Syntax

Math.cbrt(x)

Parameters

  • x
    • : A number.

Return value

The cube root of x.

Description

Because cbrt() is a static method of Math, you always use it as Math.cbrt(), rather than as a method of a Math object you created (Math is not a constructor).