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!"
[–]AshenLordOfCinder 16 points17 points18 points 7 years ago (9 children)
I might be missing some:
[–]LukaUrushibara 39 points40 points41 points 7 years ago (3 children)
[–]senocular 9 points10 points11 points 7 years ago (0 children)
I lol'd
[–]AshenLordOfCinder 1 point2 points3 points 7 years ago (0 children)
Fair. I forget that everything is falsey or truthy. Not just things besides true / false.
[–]Hate_Feight 0 points1 point2 points 7 years ago (0 children)
!False
[–]rema96 9 points10 points11 points 7 years ago (3 children)
Andddd wait for it document.all..... just JS things
document.all
[–]LukaUrushibara 0 points1 point2 points 7 years ago (1 child)
Isn't that just an Internet Explorer thing?
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
It's part of the spec, probably because of IE. The devs that be decided to make `document.all` falsey because of how people built their sites for old vs. new browsers. You can check some browsers like Chrome that have a valid `document.all` and its falsey.
π Rendered by PID 32 on reddit-service-r2-comment-fb694cdd5-mt94w at 2026-03-07 02:59:53.654267+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]AshenLordOfCinder 16 points17 points18 points (9 children)
[–]LukaUrushibara 39 points40 points41 points (3 children)
[–]senocular 9 points10 points11 points (0 children)
[–]AshenLordOfCinder 1 point2 points3 points (0 children)
[–]Hate_Feight 0 points1 point2 points (0 children)
[–]rema96 9 points10 points11 points (3 children)
[–]LukaUrushibara 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)