Outline

Here is a possible solution for this exercise:

// 1. do a console.log while num is less than 10
let num = 0;
do {
  console.log('hello there!', num);
  num++;
} while (num < 10);

// 2. while num2 < 5, log your favorite movie title to the console
let num2 = 0
while (num2 < 5) {
  console.log('Glory Road');
  num2 += 1;
}

// 3. Use a for loop to loop over some code up to 6 times, but break out on the 4th time through the loop
for (let i = 0; i < 6; i++) {
  if (i == 3) {
    break;
  }
  console.log('Loop ', i);
}

// 4. Use a for loop to loop over some code up to 6 times, but skip the 4th time through the loop
for (let i = 0; i < 6; i++) {
  if (i === 3) {
    continue;
  }
  console.log('Loop ', i);
}

You can view this key here on StackBlitz.

 

I finished! On to the next chapter