i is not incremented within JavaScript for loop : <pre><code>for (i = 1; i &lt; this.people.length; i++) {
        peoplePicks[i] = this.people[i].chooseAction(peopleChoices[i]);
    }
</code></pre>

<p>I have this for loop within my JavaScript program. It runs for ever, even though the length of the array that I am passing to it is 2. when I print the value of i after the statement of the for loop, I get 0. So it seems like i is being decremented by executing the for loop's statement. How can I fix this?</p>
