title: Why is my innner loop being skipped after the first time?
body: <br>
  I have the following JS code:
  <pre><code>var i = 0, j = 0;
  for (j; j &lt; 5; j++) {
  innerloop:
    while (i &lt; 5) {
      if (i === 3) {
        break innerloop;
      console.log(&quot;inner: &quot; + i);
    }
    console.log(&quot;outer: &quot; + j);
  } 
  </code></pre>
  <p>What I want to happen is for the inner loop to be executed 3 times (for 0, 1, 2), then the inner loop to be stopped and the outer loop to be continued, so that every time the outer loop is executed the inner loop is also executed 3 times.</p>
  <p>However, although the outer loop is executed 5 times just as wanted the inner loop is only executed a total of 3 times, for the first time the outer loop is executed.</p>
  <p>How am I able to make it so the inner loop runs every time the outer loop is run and not just the first time?</p>