Well done!

You have completed Review for Loops and Exiting Loops !

Quiz Question 1 of 6

Which of the code blocks below works the same as the following while statement:

let counter = 0; 
while (counter < 5) {
  console.log(`The counter is now: ${counter}`);
  counter++;
}

Choose the correct answer below:

Skip Quiz Review Video