Make power pellets in JavaScript

function powerPellet(base, exponent) {

return Math.pow(base, exponent);
}