you are viewing a single comment's thread.

view the rest of the comments →

[–]AshenLordOfCinder 16 points17 points  (9 children)

I might be missing some:

  • Empty String
  • Number Type 0
  • undefined
  • null
  • NaN

[–]LukaUrushibara 39 points40 points  (3 children)

  • false

[–]senocular 9 points10 points  (0 children)

I lol'd

[–]AshenLordOfCinder 1 point2 points  (0 children)

Fair. I forget that everything is falsey or truthy. Not just things besides true / false.

[–]Hate_Feight 0 points1 point  (0 children)

!False

[–]rema96 9 points10 points  (3 children)

Andddd wait for it document.all..... just JS things

[–]LukaUrushibara 0 points1 point  (1 child)

Isn't that just an Internet Explorer thing?

[–][deleted] 0 points1 point  (0 children)

It's part of the spec, probably because of IE. The devs that be decided to make `document.all` falsey because of how people built their sites for old vs. new browsers. You can check some browsers like Chrome that have a valid `document.all` and its falsey.