📅  最后修改于: 2022-03-11 15:03:25.129000             🧑  作者: Mango
const power = (base, exponent) => {
let result = 1;
for (let count = 0; count < exponent; count++) {
result *= base;
}
return result;
};