title: Regarding JavaScript for() loop voodoo
body: <p>I was for quite some time under the impression that a <code>for</code> loop could exist <em>solely</em> in the following format:</p>
  
  <pre><code>for (INITIALIZER; STOP CONDITION; INC(DEC)REMENTER)
   {
      CODE
   }
  </code></pre>
  
  <p>This is, however, most <em>definitely</em> not the case; take a look at this JavaScript implementation of the <a href="http://en.wikipedia.org/wiki/Knuth_shuffle" rel="noreferrer">Fisher-Yates Shuffle</a>:</p>
  
  <pre><code>shuffle = function(o)
   {
      for (var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
      return o;
   };
  </code></pre>
  
  <p>This little snippet completely blows my mind; how in the world is so much going on inside a simple for loop declaration? I mean... it doesn't even open a brace! All of the magic is being done <em>right there</em> inside the <code>for</code> statement. It'd be absolutely wonderful if somebody could provide a relatively thorough explanation as to how in the world this voodoo is doing what it does. Much appreciated in advance.</p>