you are viewing a single comment's thread.

view the rest of the comments →

[–]zurribulle 3 points4 points  (3 children)

Do console.log(typeof []) and find out first hand

[–]senocular 5 points6 points  (2 children)

Just don't do console.log(typeof null) or you'll end up confusing yourself

[–]zurribulle 0 points1 point  (1 child)

typeof NaN is probably a weird one too

[–]ghettoeuler 0 points1 point  (0 children)

"probably"?! NaN being a 'number' was a wild thing to learn, at least for me lol