variable juggling in javascript : <pre><code>var a = [1,2,3]
var b = [4,5,6]
var c = a;
</code></pre>

<p>Why in the case of c[2] = b[0], the value of a[2] would also get changed?</p>

<p>As far as I understand <code>var c = a</code> should only assign whatever value in <code>a[]</code> to <code>c[]</code> and not the other way around.   </p>
