javascript-truthy-falsy Flashcards

1
Q

Why is it important to understand truthy or falsy values?

A

TO create conditionals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Difference between null and undefined?

A
Null = intentionally left empty
undefined= empty for now
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why should we always use === for comparisons?

A

To check values and types all together to avoid issues .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly