0
What is the difference between i++ and i+1
for instance for(i=0;i<10;i++) and for(i=0;i<10;i+1)?
2 Answers
+ 2
i += 1
there is no difference
just a shortcut
0
The difference is that i+1 doesn't work in JavaScript and you should use i++ instead.
for instance for(i=0;i<10;i++) and for(i=0;i<10;i+1)?