Two more falsy values, -0 (I know, that's a technicality), and in HTML the object document.all.
-0
document.all
And just for sake of completeness, new Boolean(false) object is truthy, as are all objects except for document.all.
new Boolean(false)
Thank you for the remark, I will edit in a bit. To be honest, I never used document.all in a boolean context :).
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Two more falsy values,
-0
(I know, that's a technicality), and in HTML the objectdocument.all
.And just for sake of completeness,
new Boolean(false)
object is truthy, as are all objects except fordocument.all
.Thank you for the remark, I will edit in a bit. To be honest, I never used
document.all
in a boolean context :).