You've learned how traditional for
loops work with counters and conditions. Now let's practice using them in different scenarios to make sure you're comfortable with the syntax.
Engagement Message
Ready to put your counting skills to work?
Type
Fill in The Blanks
Markdown With Blanks
Fill in the blanks to create a loop that prints numbers from 1 to 5:
Suggested Answers
- let
- 1
- 5
- i++
Type
Multiple Choice
Practice Question
What will be the LAST value printed by this loop?
A. 6 B. 7 C. 8 D. 9
Suggested Answers
- A
- B - Correct
- C
- D
Type
Multiple Choice
Practice Question
How many times will "Hello" be printed by this code?
A. 5 times B. 6 times C. 7 times D. 0 times
Suggested Answers
- A
- B - Correct
- C
- D
