Javascript array explication
<p>Given this two arrays <strong>a</strong> and <strong>b</strong>:</p>

<pre><code>var a = [1,2,3];
var b = a;
a.push(4);

console.log(b); /* [1,2,3,4]  */
console.log(a); /* [1,2,3,4]  */
</code></pre>

<p>Why isn't <strong>b</strong> equal with [1,2,3] ?</p>