raiseToPower
raises a base to an exponent. Unfortunately, it's not called properly - fix the code so the value of power
is the expected 8.
power
so it equals 2 raised to the 3rd power, not 3 raised to the 2nd power.'
testString: 'assert(power == 8, ''Your code should fix the variable power
so it equals 2 raised to the 3rd power, not 3 raised to the 2nd power.'');'
- 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), ''Your code should use the correct order of the arguments for the raiseToPower
function call.'');'
```