var
startx = 0,
starty = 0,
endx = 12,
endy = 100;
for(startx;startx <= endx; startx+=1){
for(starty; starty <= endy; starty+=1){
console.log(startx, endx, starty, endy);
}
}
Expected output:
0, 12, 0, 100
0, 12, 1, 100
0, 12, 2, 100
...
0, 12, 100, 100
1, 12, 0, 100
1, 12, 1, 100
...
12, 12, 100, 100
;EOO
Output on Chrome 39+
0, 12, 0, 100
0, 12, 1, 100
0, 12, 2, 100
...
0, 12, 100, 100
So the problem is the first for loop does not iterate over startx variable.
Could you tell me why it does not iterate?