Left-hand side priority
<p>I was thinking about declaring vars in JS, when a doubt arose. What's the priority of setting up two vars' value at the same time? See:</p>

<pre><code>var a = 1,
b = 1;
</code></pre>

<p>With this code, <code>a</code> is declared before <code>b</code>. But what about this code</p>

<pre><code>var a = b = 1;
</code></pre>

<p>Which one does receive the value first? <code>a</code> or <code>b</code>?</p>
