News for hackers. Stuff that matters.
Re:Do you really know JavaScript? by al2o3cr on Friday January 31, 2014 @06:41PM (#7159962)
"typeof is broken. instanceOf is broken. precision arithmetic on floats is broken var hoisting and function scope is a misfeature"

Sounds like one hell of a PR pitch. :)

I got 15/37, in no small part by guessing "what's the most bizarre and inconsistent thing that could happen here"? Apparently my imagination is less vivid than JS's.

Re:Do you really know JavaScript? by TheZenPsycho on Friday January 31, 2014 @08:57PM (#7160511)
I'm not saying Javascript is perfect. just that you can't draw many useful conclusions from a document that sets out to find specifically its weirdest (mis)features.

And actually you could avoid using "typeof" by using polyfills/builtins for the new "is[Type]" range of functions in ecmascript5. or a similar one from a library.