javascript-for Flashcards

1
Q

How does a for loop differ from a while loop?

A

while loops only need where to end

for loops need starting how many and where to end conditions.

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

What potential use cases are there for for loops?

A

for adjusting values based on user interactions on webpage

Search engines.

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

Which pieces of information provided in the parentheses for a for loop are mandatory?

A

None are mandatory syntactically.

(; ;) is possible but will not do anything.

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