Javascript to find Power of a number without using pow()


-
Result: