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.
Web-Dev-For-Beginners/2-js-basics/4-arrays-loops/.github/post-lecture-quiz.md

626 B

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