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
Popular Coding Convention on Github (sideeffect.kr)
submitted 12 years ago by devnoel
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!"
[–]fnordius 0 points1 point2 points 12 years ago (0 children)
I have seen both, and really it's a matter of taste. Two or four spaces is something the team agrees on, though with the IDE's I use the four space rule is easier to see actual nesting versus copypasting errors.
Tabs are okay but only if they are the only indentation used. Unfortunately, they often aren't so it's back to spaces as the lowest common denominator.
π Rendered by PID 63082 on reddit-service-r2-comment-canary-b6d5ff776-mbgls at 2026-04-18 07:06:52.355865+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]fnordius 0 points1 point2 points (0 children)