[JS] Falsy Values
About
A falsy (or falsey) value is a value that's considred false
when encountered in a Boolean context.
Falsy Values in JavaScript
Value | Description |
---|---|
| The keyword false. |
| The Number zero (so, also |
| The Number negative zero (so, also |
| |
| Empty string value. |
null -- the absence of any value. | |
undefined -- the primitive value. | |
NaN -- not a number. | |
Objects are falsy if and only if they have the [[IsHTMLDDA]] internal slot. That slot only exists in |
REF
Last updated