how to decrement by 5 in javascript using for loop code example Example: js decrement for loop for (var i = 10; i > 5; i--) { alert(i); }