javascript-while Flashcards

1
Q

What is the purpose of a loop?

A

comparing variables

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

Why might there be different kinds of loops?

A

When you do not have something to iterate through

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

Could a loop potentially go on forever?

A

yes, if the condition is not false

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

Could a loop never start?

A

yes, if the condition is never met

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