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.
2
Q
What potential use cases are there for for loops?
A
for adjusting values based on user interactions on webpage
Search engines.
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.