OneCompiler

Power of N

119

function Power(base,pow) {
if(pow==0)
return 1
return base*Power(base,pow-1)

}
console.log(Power(3,4))