title: JavaScript object array
body: <p>I have the following code snippet below:</p>
  
  <pre><code>var obj = new Object();
  var foo = new Object();
  var bar = new Object();
  
  obj[foo] = 'hello';
  obj[bar] = 'hi'
  console.log (obj[foo]) 
  </code></pre>
  
  <p>It prints "hi". Why is this?</p>