Javascript - Math cbrt() Method

The cbrt() method returns the cubic root of a number.

Description

The cbrt() method returns the cubic root of a number.

Syntax

Math.cbrt(x)

Parameter Values

Parameter Require Description
x Required. A number

Return

A Number

Example

Return the cubic root of a number:

Demo

//display the cubic root of 125
console.log(Math.cbrt(125));

Result