You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
626 B
626 B
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