Conditional Statements Flashcards
Inside the _, a condition is provided that evaluates to true or false.
parentheses ()
The __ keyword followed by a set of parentheses () which is followed by a code block, or block statement, indicated by a set of curly braces {}
if
An ____ statement must be paired with an if statement, and together they are referred to as an if…else statement.
else
________ statements allow us to automate solutions to yes-or-no questions, also known as binary decisions.
if…else
the and operator … checks if BOTH provided expressions are truthy.
&&
the or operator … checks if EITHER provided expression is truthy.
||
the not operator, otherwise known as the bang operator
Also switches the truthiness and falsiness of a value.
!
A ______ statement can be used to simplify the process of writing multiple else if statements. The break keyword stops the remaining cases from being checked and executed in a _______ statement.
switch