题解 | #幂#
幂
http://www.nowcoder.com/practice/8865ac17c9bd4adeb01e16b141fd197f
{"css":"","js":"function _pow(number,power) {\n // 补全代码\n var result=1;\n if(power==0){\n return 1;\n }\n for(let i=0;i<power;i++){\n result = result * number;\n }\n return result;\n}","html":"","libs":[]}
function _pow(number,power) { // 补全代码 var result=1; if(power==0){ return 1; } for(let i=0;i<power;i++){ result = result * number; } return result; }