JavaScript Math cbrt() methodThe JavaScript math cbrt() method returns the cube root of the given number. Unlike sqrt() method, this method accepts negative number. SyntaxThe cbrt() method is represented by the following syntax: Parameternum - A number. ReturnThe cube root of the given number. JavaScript Math cbrt() method exampleHere, we will understand cbrt() method through various examples. Example 1Let's see an example to print the cube root of the given number. Test it NowOutput: 3 -4 Example 2Here, you can test cbrt() method with your own test cases. Test it NowNext TopicJavaScript Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India