342 B
342 B
importance: 4
Which values shows the while?
For every loop, scribe down which values it shows, in your opinion.
And then compare with the answer.
-
The prefix form
++i
:let i = 0; while (++i < 5) alert( i );
-
The postfix form
i++
let i = 0; while (i++ < 5) alert( i );