title: Javascript: When writing a for loop, why does it print the last index number?
body: <p>When writing a simple for loop in the js interpreter, I automatically get the last value the index number (i, in this case).</p>
  
  <pre><code>js&gt; for (var i=0; i&lt;100; ++i) { numbers[i]=i+1; }
  100
  js&gt; i
  100
  </code></pre>
  
  <p>Can someone please explain why the interpreter works like that? I didn't explicitly ask it to print the value of i.</p>
  
  <p>Sorry for the ambiguous formulation, guys, but I didn't really know how to describe what's happening. </p>