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 Now
Next TopicJavaScript Math
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week