Lesson 10: Controlling Program Flow Flashcards
1
Q
Show an example of the if() statement:
A
const age = prompt("age?") if (age < 18) { console.log('Sorry, not old enough'); { else } console.log('Welcome');
2
Q
Show an example of the if() statement:
A
const age = prompt("age?") if (age < 18) { console.log('Sorry, not old enough'); { else } console.log('Welcome');
3
Q
==
A
Soft equals
4
Q
===
A
Hard equals
5
Q
!=
A
Soft not equal
6
Q
!==
A
Not equal value or not equal type;
7
Q
>
A
Greater than
8
Q
A
Lesser than
9
Q
> =
A
Greater than or equal to
10
Q
<=
A
Lesser than or equal to
11
Q
==
A
Soft equals
12
Q
===
A
Hard equals
13
Q
!=
A
Soft not equal
14
Q
!==
A
Not equal value or not equal type;
15
Q
>
A
Greater than