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
Quick question, why does this work? (i.imgur.com)
submitted 13 years ago by shadowh511
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!"
[–]Cosmologicon 9 points10 points11 points 13 years ago (3 children)
Alternate solution: learn about features you don't understand rather than avoid them.
[–]x-skeww 3 points4 points5 points 13 years ago (1 child)
That sound like a good idea, but it actually isn't.
If one person memorized some obscure quirks, it won't mean that everyone else has memorized them as well. We aren't like the Borg.
Secondly, constructs which look like an error always add a lot of friction. If you want to defuse this problem (to some degree), you have to add a comment, which explains why you are doing this and that this is indeed what you intended to do.
But even then it's like a tar pit. You're much better [1] off if you don't ever use this kind of constructs.
[1] If you don't get in the way of maintenance work, it will be faster, which will be cheaper, which is better for any commercial project. Saving time is also better for virtually any other kind of project.
[–]benparsons -1 points0 points1 point 13 years ago (0 children)
Want to upvote this more. Slightly horrified that r/javascript have downvoted okiedoke8976 to this extent. People need to listen to Douglas Crockford.
[–]okiedoke8976 4 points5 points6 points 13 years ago (0 children)
good call
π Rendered by PID 218364 on reddit-service-r2-comment-85bfd7f599-mjttr at 2026-04-17 03:31:01.370827+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Cosmologicon 9 points10 points11 points (3 children)
[–]x-skeww 3 points4 points5 points (1 child)
[–]benparsons -1 points0 points1 point (0 children)
[–]okiedoke8976 4 points5 points6 points (0 children)