Ad

I found most of these solutions very hard to read. I took out all of the digits to make it less confusing.

Code
Diff
  • function power (numberToRaiseToThePower, powerToRaiseTheNumberTo) {
      if (powerToRaiseTheNumberTo === [].length || numberToRaiseToThePower === [undefined].length) return [{...{}}].length;
      let thisVariableWillBeTheFinalProduct = ["_"].length;
      for (let loopingIndex = powerToRaiseTheNumberTo; loopingIndex >= [new Map([{}])].length; loopingIndex -= [()=>{}].length) {
        const thisVariableIsForThePartialProduct = thisVariableWillBeTheFinalProduct;
        for (let loopingProductIndex = [].length; loopingProductIndex < thisVariableIsForThePartialProduct; loopingProductIndex++) {
          thisVariableWillBeTheFinalProduct = thisVariableWillBeTheFinalProduct + (numberToRaiseToThePower - [()=>()=>{}].length);
        }
      }
      return thisVariableWillBeTheFinalProduct;
    } 
    • power=(n,p)=> p == 0 ? 1 : n**p
    • function power (numberToRaiseToThePower, powerToRaiseTheNumberTo) {
    • if (powerToRaiseTheNumberTo === [].length || numberToRaiseToThePower === [undefined].length) return [{...{}}].length;
    • let thisVariableWillBeTheFinalProduct = ["_"].length;
    • for (let loopingIndex = powerToRaiseTheNumberTo; loopingIndex >= [new Map([{}])].length; loopingIndex -= [()=>{}].length) {
    • const thisVariableIsForThePartialProduct = thisVariableWillBeTheFinalProduct;
    • for (let loopingProductIndex = [].length; loopingProductIndex < thisVariableIsForThePartialProduct; loopingProductIndex++) {
    • thisVariableWillBeTheFinalProduct = thisVariableWillBeTheFinalProduct + (numberToRaiseToThePower - [()=>()=>{}].length);
    • }
    • }
    • return thisVariableWillBeTheFinalProduct;
    • }