How to get the cube root of a number in JavaScript

1 Answer

0 votes
console.log(Math.cbrt(8));
console.log(Math.cbrt(27));
console.log(Math.cbrt(64));




/*
run:
 
2
3
4
    
*/

 



answered Mar 13, 2020 by avibootz

Related questions

1 answer 144 views
1 answer 165 views
1 answer 130 views
1 answer 138 views
1 answer 169 views
...