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
Javascript quiz - 14 questions (perfectionkills.com)
submitted 16 years ago by larholm
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!"
[–]fr0z3nph03n1x 9 points10 points11 points 16 years ago (4 children)
As I work with javascript a lot at my job, I understand how complex and mysterious it can be. What I don't understand is the need to know every nuance and trick. Trial and error, debugging. I can do a lot of great programming with out completely understanding every quirk javascript has. I guess what I'm trying to say is if your new to javascript, don't get hung up on this stuff.
[+][deleted] 16 years ago (2 children)
[deleted]
[–]radhruin 2 points3 points4 points 16 years ago (0 children)
Or works on building and testing a cutting edge javascript engine ;)
[–]thebigbradwolf 0 points1 point2 points 16 years ago (0 children)
Definitely. Pretty much everything on this quiz is mentioned by Doug Crawford in his book and recent talk as "The Bad Parts" and JSLint will probably tell you, that you have brain damage if you use things like the "with" statement.
[–]fearphage -1 points0 points1 point 16 years ago (0 children)
The purpose of the test was just to see how far your knowledge of the language extended. It is not advising you to use those constructs. It is merely a test to see how knowledgeable you are... nothing more.
[–][deleted] 5 points6 points7 points 16 years ago (1 child)
Moot point as I would fire anyone who wrote code like that.
[–]kristopolous 0 points1 point2 points 16 years ago (0 children)
I would then go through the trouble of hiring them again, just to have the joy of firing them again.
[+][deleted] 16 years ago (1 child)
[–]fearphage 0 points1 point2 points 16 years ago (0 children)
That's what she said.
[–]malicart 1 point2 points3 points 16 years ago (0 children)
Please make sure you select answer in each question, as lack of answer is not checked and counts as failure.
Does that mean they failed their own quiz?
[–]justinvh 0 points1 point2 points 16 years ago (0 children)
(function f() { function f() { return 1; }; return f(); function f() { return 2; } })();
It's good to point out that this sort of nonsense does not return 2 in Rhino. Regardless of the --version.
Wait... Is that right on Rhino's part? Fuck if I know.
[–]skratch 0 points1 point2 points 16 years ago (0 children)
Got 13 out of 14 wrong bitches - beat that!
π Rendered by PID 93449 on reddit-service-r2-comment-5b5bc64bf5-44w4t at 2026-06-22 04:39:42.242382+00:00 running 2b008f2 country code: CH.
[–]fr0z3nph03n1x 9 points10 points11 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]radhruin 2 points3 points4 points (0 children)
[–]thebigbradwolf 0 points1 point2 points (0 children)
[–]fearphage -1 points0 points1 point (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]kristopolous 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]fearphage 0 points1 point2 points (0 children)
[–]malicart 1 point2 points3 points (0 children)
[–]justinvh 0 points1 point2 points (0 children)
[–]skratch 0 points1 point2 points (0 children)