Power By Prithwiraj samanta Power of a number. function power(x,n) { //Logic if(n === 0) { return 1; } if(n % 2 === 0) { return power(x * x, n / 2); } else { return x * power(x * x, n / 2); } } Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps