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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -