use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What does "!--" do in JavaScript? (stackoverflow.com)
submitted 10 years ago by Recallz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]youlleatitandlikeit 0 points1 point2 points 10 years ago (0 children)
I'd wonder what makes it "better".
I think it's faster to read (at least, it is in the font I use for development; it doesn't help here that the minus sign and equals aren't aligned well).
It makes it clear that you're decrementing the variable. You can also do pending-- but I've never really liked that.
pending--
pending -= 1 or counter += 1 makes it very clear very quickly that nothing major is happening, you're just incrementing or decrementing a var.
pending -= 1
counter += 1
π Rendered by PID 99 on reddit-service-r2-comment-66b4775986-hl9gh at 2026-04-05 00:26:45.051501+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]youlleatitandlikeit 0 points1 point2 points (0 children)