PHASE 03

🔁 Loops

Computers never get bored. Learn every kind of loop, the classic patterns (count, sum, find, max) and how to control loops with break and continue.

⏱️ ~2 hours of lessons 📚 4 lessons ✏️ 12 exercises Easy
▶ Start this phase

🎯 In this phase you will…

  • Write for and while loops
  • Apply the count, sum, find and max patterns
  • Control loops with break and continue
  • Write nested loops for grids and tables

📺 Lessons in this playlist

📝 Phase test

Concept questions, pseudocode writing, tracing and debugging — check you’re ready for the next phase.

🔮 What will this display?
What does this print?
1let s = 0;2for (let i = 2; i <= 6; i += 2) {3  s += i;4}5console.log(s);
💡 Concept check
You want to keep asking for a password until it is correct. Which loop fits best?