Loops let you run a block of code a certain number of times.


Note that in
Example 2.18, “Loops” even though we use the keyword var before the variable name i, this does not "scope" the variable i to the loop block. We'll discuss scope in depth later in this chapter.