Javascript i (index, iterator): if used as a variable, will it always be interpreted as index position?
<pre><code>var names = ["Ringo", "John", "Paul", "George"];

for (var i = 0; i &lt; names.length; i++) {
    alert("Say hello to " + names[i]);
}
</code></pre>

<p>In the code above, I assume it's the last piece (names[i]) that's making the index of the array change to give me the correct name. Is this true? What exactly is going on? What's making the index change so that it will change the name? And if I were to use another label for the variable, say 'a', or 'b' or even 'counter', instead of 'i', would it still work?</p>
