title: can someone help me understand what is happening in this code?
body: <p>Im struggling to understand what this calculation is <code>return base * power(base, exponent - 1);</code> in the following code. Does base get multiplied with the <code>power</code> function that has the base inside it again?</p>
  
  <pre><code>var power = function(base,exponent){
        if(exponent === 0){
            return 1;
        } else {
            return base * power(base, exponent - 1);
        }
  };
  
  power(2,2);
  </code></pre>
  
  <p>Does this mean that <code>return base = 2*(2,2-1)</code>?</p>