362 B
362 B
importance: 4
Which values get shown by the "for" loop?
For each loop write down which values it is going to show. Then compare with the answer.
Both loops alert
same values or not?
-
The postfix form:
for (let i = 0; i < 5; i++) alert( i );
-
The prefix form:
for (let i = 0; i < 5; ++i) alert( i );