Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
A loop is a way to repeat code in your program. There are while loops, which let us repeat code as long as a condition is true, and for loops, which let us repeat code a fixed number of times.