Keep getting an error when I run the following.
Any help greatly appreciated.
John
var power = function (base, exponent){
if (exponent === 0){
return 1;
}
else () {
return base * power(base, exponent-1);
}
};
Remove the parenthesis after the
else: