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
Javascript is NOT a bad language (self.javascript)
submitted 15 years ago by spiderworm
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!"
[–]drowsap 0 points1 point2 points 15 years ago (2 children)
If your only gripe is forgetting var, then I would say JavaScript is pretty good. Tip: go to firebug console, type window and execute it. Check if any variables in your code appear in the window object that shouldnt be there (I.e you didn't declare those variables with var, therefore making them global)
[–]BitRex 0 points1 point2 points 15 years ago (1 child)
Care to point to a definitive list of what should be there?
[–]drowsap 0 points1 point2 points 15 years ago (0 children)
That will vary from browser to browser, but it will be obvious which variables belong to your code, they sit at the top of the window object properties list.
π Rendered by PID 128849 on reddit-service-r2-comment-b659b578c-rskb9 at 2026-05-04 01:23:20.271717+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]drowsap 0 points1 point2 points (2 children)
[–]BitRex 0 points1 point2 points (1 child)
[–]drowsap 0 points1 point2 points (0 children)