I added power(base, exponent) to math.js, with a JSDoc block above it because the repository's house-style check requires one. It multiplies base by itself exponent times, so power(2, 10) gives 1024 and power(5, 0) gives 1. A negative exponent throws a RangeError.
I added a test in test.js for each of the three cases in the issue. node test.js passes locally. I did not run the CI workflows themselves, only the unit tests. I did not run the house-style script, but the JSDoc comment sits directly above function power, which is what it looks for.
I did not check that the exponent is a whole number. A fractional exponent such as 2.5 gives the result for 3 multiplications instead of throwing, because the issue only specified the negative case.
I put the function after multiply and changed only the module.exports line. PRs #14, #12 and #5 also edit math.js and test.js, so the exports line and the end of test.js may need a trivial merge resolution.