Map / Loops
🔁 Loops
A loop repeats code while a condition is true. for loops count; while loops keep going until something changes. Most loop bugs are off by one or never stop.
- while
- for
- ++
- +=
- nested for
- break
- continue
- charAt(i)
🛠 You will build: A pattern printer and a number game
0 / 10 done
- 🔮 Predict 1. Adding up with for
- 👣 Trace 2. Doubling with while
- 🔮 Predict 3. How many times?
- 🧩 Order 4. Countdown
- ✏️ Fill in 5. Every second number
- 🐞 Debug 6. The loop that never stops
- 🐞 Debug 7. One step too far
- 🔧 Modify 8. A bigger triangle
- ⌨️ Write 9. Count the vowels
- ⌨️ Write 10. Guess the number
Unit check
Earlier activities again, with new inputs and edge cases. They also come back on the map as review the next day.