See the for loop index adjustments
7:~$ js
js> 1,2
2
js> 1,2,3
3
js> 1,2,3,4
4
js>
The idea is that the first expression will be evaluated purely for side-effects such as assignment. The value of the entire expression is the value of the right operand of the , operator.
It is frequently the case that neither of the expressions is being evaluated for its value. In your example case the use of the , operator is to cram two index adjustments into the third expression of the for loop. Neither value is used, it's purely for side effects. Here is a more involved example:
js> i = 10; j = 20;
20
js> t = i++, j--;
20
js> i
11
js> j
19
js> t
10
You can see that both expressions were evaluated (so i and j were bumped) but the value of t is the value of the second expression, j--.