JavaScript cbrt() method

Definition and usage

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

Example

Returns the cube root of a number:

Math.cbrt(125);

Try it yourself

Syntax

Math.cbrt(x)

Parameter value

Parameter Description
x Required. Number.

Technical details

Return value: Number.
JavaScript version: ECMAScript 6

Browser support

Math.cbrt() It is an ES6 feature (JavaScript 2015). All modern browsers support it:

Chrome Edge Firefox Safari Opera
Supported Supported Supported Supported Supported

Note:Internet Explorer does not support Math.cbrt().

Related Pages

Tutorial:JavaScript Mathematics