Some of the assignments the browser will need to perform on your code consist of executing a portion of code over and over again until an intermediate condition occurs. This repetitive execution of code is referred to as looping. To perform such a loop, your code will need to specify a condition to test, what to do depending on the test for example how to loop, and when to stop.