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 variable used to count the number of times an action has been performed. For example, to count how many times a loop has executed, we use a counter variable i: ``` for(int i = 0; i < 10; i++) { ```