javascript - How to decrement work in java script for loop? -
below java script loop increment working decrement not work, how solve think?
for(var i=1; i<5; i++) { alert(i); } work fine for(var i=10; i<5; i--) { alert(i); } not working
better check ease... decrement use
for (var = 10; > 5; i--) { alert(i); }
njoy...
Comments
Post a Comment