The JavaScript math cbrt() method is used to get the cube root of a number. Syntax:
Math.cbrt(n)
Parameters n: It represents the number whose cube root has to be get.
Returns Cube root value of a number.
Example:
<!DOCTYPE html> <html> <body> <script> document.writeln(Math.cbrt(125)); </script> </body> </html>
Please follow and like us: