How to find cube root in Node.js

1 Answer

0 votes
console.log(Math.cbrt(0));
console.log(Math.cbrt(1));
console.log(Math.cbrt(-27));
console.log(Math.cbrt(64));
console.log(Math.cbrt(16));
console.log(Math.cbrt(120)); 
 
 
 
 
/*
run:
 
0
1
-3
4
2.5198420997897464
4.93242414866094
 
*/

 



answered Nov 16, 2022 by avibootz

Related questions

...