1/18
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
&&
both terms need to be true for the whole expression to be true
true && true
true
true && false
false
false && true
false
false && false
false
||
one or the other has to be true for the whole expression to be true
true || true
true
true || false
true
false || true
true
false || false
false
if (rain) —>
if(rain == Tru
dangling else
else statement belongs to the closest if statement
De Morgan’s Laws
!(a == b)
a ≠ b
!(a ≠ b)
a == b
!(a < b)
a >= b
!(a > b)
a <= b
!(a <= b)
a > b
!(a >= b)
a < b