title: JavaScript: Can't access array in object
body: <p>I'm experiencing extremely strange behavior when accessing a property of an object.</p>
  
  <p>Running this code:</p>
  
  <pre><code>console.log(myObj);
  console.log(myObj.items);
  console.log(myObj);
  </code></pre>
  
  <p>I get this output in the console:</p>
  
  <p><img src="https://i.stack.imgur.com/cLb05.png" alt="enter image description here"></p>
  
  <p>How could this possibly happen?</p>