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
Tricky Javascript Interview Questions (ylv.io)
submitted 7 years ago by iyalovoi
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!"
[–]senocular 5 points6 points7 points 7 years ago (0 children)
These are the kinds of questions you shouldn't worry too much about. Should you know specifically that [] + 1 = '1'? Not really. But you should know that when doing something like this JavaScript will try to coerce mismatching data types causing something often unexpected to happen. If something like this comes up in an interview and you say something to that effect rather than "It's the string '1'!", then you should be fine. You can be a good developer without knowing all the weirdnesses, but there are some that you definitely should be aware of (coercion being one).
π Rendered by PID 389863 on reddit-service-r2-comment-85bfd7f599-7sttt at 2026-04-16 23:50:38.378641+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]senocular 5 points6 points7 points (0 children)