Give 6 examples of comparison operators.
What data type do comparison expressions evaluate to?
Comparison operators all return a Boolean (logical) value of true or false
What is the purpose of an if statement?
guides a program to make decisions based on specified criteria
Is else required in order to use an if statement?
else statement is not mandatory
Describe the syntax (structure) of an if statement.
function of value
then if (condition) {
return value{
else if or else {
return value}
What are the three logical operators?
|| (or) &&(and) !(not)
How do you compare two different expressions in the same condition?
&& or || symbol