I have an object that has properties, but when I try to access them, it always returns undefined.
Using Chrome, I attached the object to window and in the console, if I do, window.country
It returns this object:
[ Object
currency_code: null
iso: "USA"
iso3: "USA"
name: "USA"
states: Array[51]
__proto__: Object
]
However, when I try to access a property, such as window.country.iso it's undefined. Any ideas why this would be?
Thank you!
window.country.isoin the console?window.countryan array? Do you need to dowindow.country[0].iso?[and the]? That's it.