Ad
Code
Diff
  • const power = (n, p) => n ** p;
    • power=(n,p)=> p === 0 ? 1 : Math.pow(n,p)
    • const power = (n, p) => n ** p;