Ad
Code
Diff
  • // why not ?
    
    function power(a, b){
      if (a === 0){
        return 1
      } else {return(a ** b)}
      
    }
    • // why not ?
    • const power = ( a, b ) => Math.pow(a, b);
    • function power(a, b){
    • if (a === 0){
    • return 1
    • } else {return(a ** b)}
    • }