Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 626 Bytes

File metadata and controls

18 lines (12 loc) · 626 Bytes

Complete this quiz by checking one answer per question.

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