By the end of this session, you will be able to:
A loop is like telling the computer:
“Do this thing again… and again… and again… but slightly different each time!”
Instead of typing 50 circles manually, you write one loop and let the computer repeat the drawing for you.
for (let i = 0; i < 10; i++) {
// repeat this code 10 times
}
i = 0 → starti < 10 → stop when i reaches 10i++ → go up by 1 each time