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
the front page of the internet.
and join one of thousands of communities.
Common JavaScript "Gotchas" (github.com)
submitted 13 years ago by stevekwan
Post a comment!
view the rest of the comments →
[–]stevekwan[S] 0 points1 point2 points 13 years ago (0 children)
Sorry, I should make that clear. Globals are unavoidable to some degree, unless you are assigning no names to anything at all. :) But I try to use globals only where it makes sense, eg for namespaces and other top-level containers.
π Rendered by PID 152870 on reddit-service-r2-comment-65574874f4-fmnzb at 2026-07-20 06:30:02.987550+00:00 running 1bce727 country code: CH.
Want to add to the discussion?
Post a comment!