Ad

There is a such thing as being too wordy. I used proper mathematical definitions to represent some of the variables.

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