4.2. While Loop

4.3. Loop Structure Exercises

  1. Print 6 times “JavaScript” to the Console using a loop structure.
  2. Print numbers from 0-9 using a loop structure.
  3. Print numbers from 1-10 using a loop structure.
  4. Print numbers from 1-200 using a loop structure.
  5. Print numbers from 12-16 using a loop structure.
  6. Print to the console using a loop structure:
1. round
2. round
3. round
4. round
  1. Loop numbers through 1-10, but print only numbers from 5-10.
  2. Loop numbers through 1-10, but print only every second number:
2
4
6
8
10