JS-If Flashcards

1
Q

Give 6 examples of comparison operators

A

< , ==, ===, >, >==. <==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What data types do comparison expressions evaluate to?

A

boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is purpose of if statement?

A

check to see if a condition is met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is else required for if statement

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

describe syntax of if statement

A

if (condition) {
code to run if condition is met
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are 3 logical operators

A

&&, ||, !

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how to compare 2 different expressions in one condtion?

A

&&, ||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly