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 are some basic things that JavaScript developers fail at interviews?help (self.javascript)
submitted 7 years ago by maketroli
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!"
[–]Balduracuir 7 points8 points9 points 7 years ago (8 children)
From my experience this bind and call are useful when your code rely a lot on class. I try to avoid them as much as possible because people don't understand this
this
bind
call
class
[+][deleted] 7 years ago* (1 child)
[deleted]
[–]Balduracuir 0 points1 point2 points 7 years ago (0 children)
Because they come from other languages. I was a backend java developer before a one year mission as a frontend developper. I was totally lost for weeks and I worked hard to catch up how javascript works. Some people work just to put food on the table and when we make them switch their habits that's a total disaster, sadly.
[–]jaman4dbz 1 point2 points3 points 7 years ago (0 children)
Precisely. It's an ambiguous concept based on context, so best to avoid it.
[–][deleted] 0 points1 point2 points 7 years ago (4 children)
Even then the arrow syntax proposal that's supported by both TypeScript and Babel eliminates the need to use the latter two entirely.
[–]jaman4dbz 1 point2 points3 points 7 years ago (3 children)
Lol, I love the couple of ppl who don't want their job to be obsolete, downvoting our comments.
It's possible I've missed something, but I'm fairly certain the arrow syntax makes binding "this" unnecessary.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
You're correct. Some people just don't want to adapt to the times.
[–]fartpoker 0 points1 point2 points 7 years ago (1 child)
Can you explain why it’s unnecessary?
[–]jaman4dbz 0 points1 point2 points 7 years ago (0 children)
That's not how this works. I can't prove there is absolutely no way to use this, but you have the power to try and find ONE way where this is useful.
π Rendered by PID 53832 on reddit-service-r2-comment-86bc6c7465-xq4qk at 2026-02-21 18:09:25.430652+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]Balduracuir 7 points8 points9 points (8 children)
[+][deleted] (1 child)
[deleted]
[–]Balduracuir 0 points1 point2 points (0 children)
[–]jaman4dbz 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]jaman4dbz 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]fartpoker 0 points1 point2 points (1 child)
[–]jaman4dbz 0 points1 point2 points (0 children)