Rather Read the Key Concept? Click Here
KEY CONCEPT: LOOPS
You may have noticed that this example program runs again and again- that's a code loop in action. Computers don't get tired and they don't get bored, so it's very easy to program a computer to do the same thing over and over. In this lesson, you'll blink an LED light on Code Car with a loop. The code inside the void loop section of the program is run from top to bottom, then starts over and runs again.
When your blinking LED code reaches the closing curly brace of void loop(), it jumps back to the top of the void loop and starts running again, line by line. The loop here doesn't change each time it is run and it never stops. Later, you'll learn about loops that change as they run and that stop once they reach a certain goal.