Drag the background!

Step 7. For/While Loops

This lesson introduces the ideas of "for" loops and "while" loops in programming. These can be used to make things happen many times.

Play the lesson and do Exercises 7.1, 7.2 and 7.3 described in it. The Worlds will not work until you make the fixes explained in the lesson.

Lesson

7. For/While Loops
JavaScript For/While Loops

World

Bart on fire
Bart is on fire! Help!

World

Fill with Sponges
Fill with Sponges

World

Drop Bombs
Drop Bombs with for loop

World

Fill with Faces
for/while loops
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript or Python coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.