How to decrement work in java script for loop?
<p>Below java script loop for increment is working but for decrement not work, how to solve this think?</p>

<pre><code>for(var i=1; i&lt;5; i++) { alert(i); } work fine

for(var i=10; i&lt;5; i--) { alert(i); } not working
</code></pre>
