English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.cbrt()The method returns the cube root of a number.
Since cbrt() is a static method of Math, you should always use it asMath.cbrt(), rather than as a method of the created Math object.
Math.cbrt(x)
Math.cbrt(64);Test and See‹/›
The number in the table specifies the first browser version that fully supports the Math.cbrt() method:
Method | |||||
Math.cbrt() | 38 | 25 | 25 | 8 | 12 |
Parameter | Description |
---|---|
x | Number |
Return Value: | Cube Root of a Given Number |
---|---|
JavaScript Version: | ECMAScript 6 |