title: Remove reference to another object in javascript
body: <pre><code>var b = {};
  var a = b;
  b.test = 123;
  console.log(a.test);
  </code></pre>
  
  <p>I am trying to write code similar to the above, however for sake of not having to describe context I'll display that instead ^ </p>
  
  <p>After the line <code>a = b</code> I want to lose the reference from a to b, so I can update b without it affecting a, and vice-versa</p>
  
  <p>Is this possible?</p>