Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
Here they all are. I realize that two of them will bring out the angry mob with their torches and pitchforks. But my disclaimer is that I did not write the language.
First the easy 6 falsy things:
false
0
""
undefined
null
NaN
Plus the final two falsy things, the second of which being an HTML-ism (part of the HTML specification):
-0
document.all
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.
One of my favorite web-slinger questions (for fun, not for job interviews) is: can you name all 8 of the falsy things?
Here's the first falsy thing, to get you started, which is pretty much a gimme:
I'm out. What are the last 2?
-NaN and -0
Shoutout! I didn't get
NaN
Here they all are. I realize that two of them will bring out the angry mob with their torches and pitchforks. But my disclaimer is that I did not write the language.
First the easy 6 falsy things:
Plus the final two falsy things, the second of which being an HTML-ism (part of the HTML specification):