raiseToPower
повышает базу до экспоненты. К сожалению, он не называется правильно - исправьте код, так что значение power
будет ожидаемым 8.
power
so it equals 2 raised to the 3rd power, not 3 raised to the 2nd power.
testString: assert(power == 8);
- text: Your code should use the correct order of the arguments for the raiseToPower
function call.
testString: assert(code.match(/raiseToPower\(\s*?base\s*?,\s*?exp\s*?\);/g));
```