I think this is rather controversial, and I personally stick to i++
in loops. Of cource, you can replace it with i = i + 1
in your loop statement, to be fully compliant to JSLint.
There aren't real alternatives to increment and decrement numerical values in JavaScript. You can often use Array.forEach()
and/or Object.keys()
in order to prevent numerical indexes.