4 ms·
"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
by al2o3cr 13y ago
"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.
- TheZenPsycho 13y agoI'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.