title: JavaScript object's properties undefined
body: <p>I have an object that has properties, but when I try to access them, it always returns undefined.</p>
  
  <p>Using Chrome, I attached the object to window and in the console, if I do, <code>window.country</code></p>
  
  <p>It returns this object:</p>
  
  <pre><code>[ Object
  currency_code: null
  iso: "USA"
  iso3: "USA"
  name: "USA"
  states: Array[51]
  __proto__: Object
  ]
  </code></pre>
  
  <p>However, when I try to access a property, such as <code>window.country.iso</code> it's undefined.  Any ideas why this would be?</p>
  
  <p>Thank you!</p>