Truthy & Falsy Values Flashcards
1
Q
What are falsey values in JS?
A
These are values that aren’t false but return false when converted into a boolean.
2
Q
What are the five falsey values in JS?
A
- 0
- ” “
- undefined
- null
- NaN
What are falsey values in JS?
These are values that aren’t false but return false when converted into a boolean.
What are the five falsey values in JS?