LaunchCode logo
  1. Contents
  2. 9. Repeating With Loops

9. Repeating With LoopsΒΆ

  1. 9.1. Iteration
  2. 9.2. for Loops
    1. 9.2.1. for Loop Syntax
    2. 9.2.2. Flow of Execution of the for Loop
  3. 9.3. Iterating Over Collections
    1. 9.3.1. Iterating Over Strings
    2. 9.3.2. Iterating Over Arrays
  4. 9.4. Breaking Down the for Statement
    1. 9.4.1. for Loop Anatomy
      1. 9.4.1.1. Initial Expression
      2. 9.4.1.2. Loop Condition
      3. 9.4.1.3. Update Expression
    2. 9.4.2. Check Your Understanding
  5. 9.5. The Accumulator Pattern
    1. 9.5.1. Adding 1...n
    2. 9.5.2. Reversing a String
    3. 9.5.3. Summing an Array
  6. 9.6. while Loops
    1. 9.6.1. while Loop Syntax
    2. 9.6.2. Flow of Execution of the while Loop
    3. 9.6.3. for Loops Rewritten as while Loops
    4. 9.6.4. Beyond for Loops
    5. 9.6.5. Infinite Loops, Revisited
    6. 9.6.6. Check Your Understanding
  7. 9.7. Terminating a Loop With break
  8. 9.8. Choosing Which Loop to Use
    1. 9.8.1. Check Your Understanding
  9. 9.9. Exercises: Loops
    1. 9.9.1. for Practice
    2. 9.9.2. while Practice
  10. 9.10. Studio: Loops
    1. 9.10.1. Part A (Put dinner together)
    2. 9.10.2. Part B (Self-destruct system)
    3. 9.10.3. Part C (Refinements)
    4. 9.10.4. Bonus Mission
  • ← 8.6. Studio: Strings and Arrays
  • 9.1. Iteration →

Back to top