Section 1 - Instruction

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?

Section 2 - Practice

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

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

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