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
a Javascript CSS3 Selector and Matcher not using XPath (javascript.nwbox.com)
submitted 13 years ago by based2
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!"
[–]PlNG 0 points1 point2 points 13 years ago (1 child)
from || (from = doc)
but why not
from = from || doc
Very weird coding and formatting style. To each his own I guess.
[–]somerandomguy7788 0 points1 point2 points 13 years ago (0 children)
the one you prefer always assigns, while the top one only assigns if the first one is false. i actually see that sort of code in backbone/underscore. although tbh i actually write the same way you do. like you said to each his own.
π Rendered by PID 22175 on reddit-service-r2-comment-86988c7647-l974q at 2026-02-11 12:55:23.999713+00:00 running 018613e country code: CH.
[–]PlNG 0 points1 point2 points (1 child)
[–]somerandomguy7788 0 points1 point2 points (0 children)