I honestly think there's no "worse", 'cause both cases have a rationale explanation. The root of any object prototypal inheritance in JS is `null`: Object.getPrototypeOf(Object.prototype) === null; When you want a dict, you `Object.create(null)` too! 0/0 is also not a number.
-
-
-
I know you get it, I just wonder why 312+ developers and counting still didn't grasp the basics of JavaScript

-
They just like polls.
End of conversation
New conversation -
-
-
Why no option for them both being bad?

- End of conversation
New conversation -
-
-
I voted NaN only because it's literally in the name
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Feels like Nov 2016 again.
-
or 1991, it depends how you look at it:https://www.youtube.com/watch?v=8SbUC-UaAxE …
End of conversation
New conversation -
-
-
There are 3 equal signs, that’s the worst thing about it. That’s against the DRY principle for sure.
- 1 more reply
New conversation -
-
-
They're both brutal, but null being an object is slightly worse in my book. I've always thought that if the answer isn't Infinity of either sign, then NaN should just throw an exception when it arises. Essentially I like the Ruby way.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I… vehemently disagree with these results so far.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.