If/Else Statements Flashcards

1
Q

Why do you always use === for comparisons?

A

== can give false positives

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

Do all if statements require an else statement?

A

no

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

What is the proper syntax for using the or operator?

A

||

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