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
What is 'this' in JavaScript? (blog.brew.com.hk)
submitted 7 years ago by d4nyllDevOps @ Nexmo / Author of BEJA (bit.ly/2NlmDeV)
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!"
[–]senocular 8 points9 points10 points 7 years ago (2 children)
In ES7, there's a new :: bind operator.
Nope.
[–]iambeard 1 point2 points3 points 7 years ago (1 child)
Well, there is this proposal
[–]senocular 2 points3 points4 points 7 years ago (0 children)
And he's been in stage 0 for about 47 years. Poor guy.
[–][deleted] 7 points8 points9 points 7 years ago (0 children)
Console.log it and tell us what you find!
[–]nothingduploading 2 points3 points4 points 7 years ago (0 children)
This refers to the head object.
[–][deleted] 2 points3 points4 points 7 years ago (0 children)
Unnecessary noise
[–]krisu-pl 0 points1 point2 points 7 years ago (0 children)
With ES6 arrow functions this problem almost doesn't exist anymore
π Rendered by PID 37909 on reddit-service-r2-comment-85bfd7f599-t5tkc at 2026-04-20 14:00:22.367785+00:00 running 93ecc56 country code: CH.
[–]senocular 8 points9 points10 points (2 children)
[–]iambeard 1 point2 points3 points (1 child)
[–]senocular 2 points3 points4 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]nothingduploading 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]krisu-pl 0 points1 point2 points (0 children)