How does [b][b = a,0] swap between a and b?
<p>As <a href="http://stackoverflow.com/a/9864059/283863">gdoron</a> pointed out, </p>

<pre><code>var a = "a";
var b = "b";

a = [b][b = a,0];
</code></pre>

<p>Will swap <code>a</code> and <code>b</code>, and although it looks a bit of <em>hacky</em>, it has triggered my curiosity and I am very curious at how it works. It doesn't make any sense to me.</p>
