title: why doesn't it add 1 to recursion?
body: <p><strong>Javascript</strong></p>
  <hr />
  <p>why does startNum++ which adds upto 7 in first execution doesn't make startNum argument 7 in function call inside function itself?</p>
  <pre><code> function rangeOfNumbers(startNum, endNum) {
   
      if(startNum===endNum){
         return [startNum];
      }else if(startNum&lt;endNum){
         return [startNum];
         startNum++;
         rangeOfNumbers(startNum,endNum);
       }
    };
    rangeOfNumbers(6, 9);
  </code></pre>