title: Sequential strings javascript
body: <p>I'm stuck on sequential string generation, the last iteration of the code below, is trying to return <code>ac</code>.</p>
  
  <pre><code>var charcode = 'abcdefghijklmnopqrstuvwxyz0123456789_';
  var arr = [];
  var len = 1;
  var current = 0;
  
  for(var i = 0; i &lt; 40; i++) {
      if(current == charcode.length) {
          current = 0
          len++
      }
      var tmpStr = ''
      for(var l = 0; l &lt; len; l++) {
          tmpStr = tmpStr + charcode[current];
      }
      console.log(tmpStr)
      current++
  }
  </code></pre>
  
  <p>However, it produces <code>cc</code>.</p>
  
  <p><em>Sorry, somehow deleted the intended output</em></p>
  
  <pre><code>a, b, c ... aa, ab, ac ... ba, bc, bb ... ∞
  </code></pre>
  
  <p>My current understanding suggests within the <code>l &lt; len</code> loop I should check if <code>len &gt; 1</code> and if so break out and loop for the current <code>charcode[x]</code> but I just can't wrap my head around breaking in and out as it grows.</p>