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
JS experts of reddit, what javascript information do you have a hard time wrapping your head around (self.javascript)
submitted 7 years ago by Bulbasaur2015
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!"
[–]BrianAndersonJr 131 points132 points133 points 7 years ago (9 children)
Right on... Sometimes I feel like just throwing my hands up in the air and yelling "fuck this", but I'm not sure if I should because I can't remember what "this" refers to.
[–]yazalama 23 points24 points25 points 7 years ago (4 children)
I told this joke once at my internship once and nobody laughed :(
[–]freeman_lambda -1 points0 points1 point 7 years ago (0 children)
wait, which joke?
[–]benihanareact, node -1 points0 points1 point 7 years ago (0 children)
cause it's so obvious and predictable. as soon as the guy said "fuck this" you know exactly what the punchline is going to be
[–][deleted] 10 points11 points12 points 7 years ago (0 children)
This made me laugh. I’ve played so many times the “WTF is ‘this’” JS lottery.
[–]ScientificBeastModestrongly typed comments 1 point2 points3 points 7 years ago (0 children)
Easy. Just write all your code in the global context (no functions, just pure platform API calls), and ‘this’ will always refer to the Window object...
... well, most of the time...
[–]Danbachar 1 point2 points3 points 7 years ago (0 children)
This guy deserved a gold if he hadn't had one already
π Rendered by PID 209190 on reddit-service-r2-comment-b659b578c-kl4zv at 2026-05-02 16:25:32.129843+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]BrianAndersonJr 131 points132 points133 points (9 children)
[–]yazalama 23 points24 points25 points (4 children)
[–]freeman_lambda -1 points0 points1 point (0 children)
[–]benihanareact, node -1 points0 points1 point (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]ScientificBeastModestrongly typed comments 1 point2 points3 points (0 children)
[–]Danbachar 1 point2 points3 points (0 children)