You've learned how for...of
loops work with arrays. Now let's practice using them with different types of data and situations.
Engagement Message
Ready to put your loop skills to the test?
Type
Multiple Choice
Practice Question
What will be printed on the SECOND line when this code runs?
A. I like apple
B. I like banana
C. I like orange
D. I like fruits
Suggested Answers
- A
- B - Correct
- C
- D
Type
Fill in The Blanks
Markdown With Blanks
Fill in the blanks to loop through the names
array and print each name with "Hello".
Suggested Answers
- for
- person
- names
- while
Type
Sort Into Boxes
Practice Question
Sort these scenarios into the correct boxes based on whether they're good uses for a for...of
loop:
Labels
