Java Script for of : <p>Can you explain me, please, why first console.log shows me array with both:
array.foo and item, but when I use for of loop it does not show array.foo? </p>

<pre><code>let array = [3,5,8, item = 'good'];
array.foo = 'hello';
console.log(array);

for (var i of array) {
 console.log( i);
}
</code></pre>
