HTML and CSS Reference
In-Depth Information
using PrOgr aM lOOPs
The
start
expression
provides the starting
value of the counter
variable,
i
.
The
continue
expression
is a Boolean expression
that must equate to
true
for the loop to continue.
The
update
expression
updates the counter
variable each time
through the loop.
A
for
loop
is a programming
structure in which a set of
commands is repeated based
on the changing values of a
counter variable
.
The same
code
is executed
with different
v
alues of the
counter variable during each
iteration of the for loop.