Math ऑब्जेक्ट का cbrt() फंक्शन एक नंबर स्वीकार करता है और उसका घनमूल लौटाता है।
सिंटैक्स
इसका सिंटैक्स निम्नानुसार है:
Math.cbrt(x)
उदाहरण
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.cbrt(729); document.write("<br>"); document.write("Cube root of the given number: "+result); </script> </body> </html>
आउटपुट
Cube root of the given number: 9