function power (base, expoent) { if (expoent == 0) return 1; else return base * power (base,expoent-1 ); }