Iterating over array of objects javascript - odd behaviour?
<pre><code>var myArr = [{a:1, b:2}, {c:3, d:4}];

for (var item in myArr) {
    console.log(item);
}
</code></pre>

<p>Item returns the key (ex: 0, 1) instead of the object itself. Why?</p>
