我需要得到一个数字的双平方根,但我的代码不起作用:
function doubleSquareRootOf(num) {
return num * num * num;
}
var output = doubleSquareRootOf(121);
console.log(output); // --> it must return 22 but its displaying 1771561
Run Code Online (Sandbox Code Playgroud)
任何的想法?