title: Problems with references to objects being dropped in javascript
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var a = [],b = [],c = [{}];
  b = a;
  a = c;
  a.push("asd");
  console.log("a : " ,a);
  console.log("b : " ,b );</code></pre>
  </div>
  </div>
  </p>
  
  <p>In this code, Why is b different from a?</p>
  
  <p>I want b to refer to a.</p>
  
  <p>However, if a refers to c, b no longer refers to a.</p>