Javatpoint Logo
Javatpoint Logo

JavaScript Math cbrt() method

The JavaScript math cbrt() method returns the cube root of the given number. Unlike sqrt() method, this method accepts negative number.


The cbrt() method is represented by the following syntax:


num - A number.


The cube root of the given number.

JavaScript Math cbrt() method example

Here, we will understand cbrt() method through various examples.

Example 1

Let's see an example to print the cube root of the given number.

Test it Now



Example 2

Here, you can test cbrt() method with your own test cases.

Test it Now
Next TopicJavaScript Math

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA