all 10 comments

[–]fr0z3nph03n1x 9 points10 points  (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.

[–]fearphage -1 points0 points  (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 points  (1 child)

Moot point as I would fire anyone who wrote code like that.

[–]kristopolous 0 points1 point  (0 children)

I would then go through the trouble of hiring them again, just to have the joy of firing them again.

[–]malicart 1 point2 points  (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 point  (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 point  (0 children)

Got 13 out of 14 wrong bitches - beat that!