Complete this quiz by checking one answer per question.
- What part of a for-loop would you need to modify to increment its iteration by 5
- condition
- counter
- iteration-expression
- What's the difference between a
while
and afor-loop
- A
for-loop
has a counter and iteration-expression, wherewhile
only has a condition - A
while
has a counter and iteration-expression wherefor-loop
only has a condition - They are the same, just an alias for one another
- Given the code
for (let i=1; i < 5; i++)
, how many iterations will it perform?
- 5
- 4