Link Search Menu Expand Document

Catch Arguments Passed in the Wrong Order When Calling a Function

Final Code

function raiseToPower(b, e) {
  return Math.pow(b, e);
}

let base = 2;
let exp = 3;
let power = raiseToPower(base, exp);
console.log(power);