Logging array indices, not values (JavaScript) - why? : <p>Here's my script:</p>

<pre><code>var alphabet = ["A", "B", "C", "D", "3", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
var str = [];

for (i=0; i&lt;alphabet.length; i++) {
    str.push(i);
    console.log(str.join(""));
}
</code></pre>

<p>It's printing out the indices of str (0, 01, 012...) rather than the values (A, AB, ABC...). What is going on here? </p>
