Skip to main content

All Questions

Filter by
Sorted by
Tagged with
398 votes
17 answers
378k views

Why avoid increment ("++") and decrement ("--") operators in JavaScript?

One of the tips for jslint tool is: ++ and -- The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second only to ...
artlung's user avatar
  • 33.8k