JS-If Flashcards
1
Q
Give 6 examples of comparison operators
A
< , ==, ===, >, >==. <==
2
Q
What data types do comparison expressions evaluate to?
A
boolean
3
Q
what is purpose of if statement?
A
check to see if a condition is met
4
Q
is else required for if statement
A
no
5
Q
describe syntax of if statement
A
if (condition) {
code to run if condition is met
}
6
Q
what are 3 logical operators
A
&&, ||, !
7
Q
how to compare 2 different expressions in one condtion?
A
&&, ||