Section 1 - Instruction

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?

Section 2 - Practice

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
Section 3 - Practice

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
Section 4 - Practice

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

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal