Ed Jay wrote:
When I run the script through JSLint, I get the warning that using the ++
operator is considered harmful. What's that all about?
If you read the documentation provided on the site
<url:http://www.crockford.com/jslint/lint.html>, then you would've
found this line:
"The ++ (post-increment) and -- (post-decrement) operators have been
known to contribute to bad code by encouraging excessive trickiness.
They are second only to faulty architecture in enabling to viruses and
other security menaces. JSLint does not expect to see them by default.
JSLint currently tolerates the pre-increment and pre-decrement forms."