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');
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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');
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

==

A

Soft equals

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

===

A

Hard equals

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

!=

A

Soft not equal

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

!==

A

Not equal value or not equal type;

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

>

A

Greater than

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

Lesser than

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

> =

A

Greater than or equal to

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

<=

A

Lesser than or equal to

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

==

A

Soft equals

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

===

A

Hard equals

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

!=

A

Soft not equal

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

!==

A

Not equal value or not equal type;

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

>

A

Greater than

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

Lesser than

17
Q

> =

A

Greater than or equal to

18
Q

<=

A

Lesser than or equal to