Chapter 5 Flashcards
Making Decisions with Conditionals
1
Q
True or False
A
Boolean values
2
Q
An expression that evaluates to either true or false
A
Boolean expression
3
Q
Comparison operators, such as === or <
A
Boolean operators
4
Q
A boolean expression made out of smaller boolean expressions
A
Compound boolean expression
5
Q
Logical AND Operator
A
&&
6
Q
Logical OR Operator
A
||
7
Q
Logical NOT Operator
A
!
‘bang’
8
Q
Operator precedence
A
Logical NOT (!)
Arithmetic operators (**, *, /, %, +, -)
Comparison operators (<=, >=, <, >)
Equality operators (===, !==, ==, !=)
Logical AND (&&) and OR (||)
9
Q
If statement
A
Conditional
10
Q
The statements that follow the condition, within {}
A
Code block
11
Q
Can be paired with an if statement to specify code that should be executed when the condition is false
A
else clause