Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The same result can be obtained using the for statement, which is specifically designed to evaluate an expression on each iteration of the loop, just before performing the test in its controlling expression:

Code Block
bgColor#FFcccc
langc
 for for (; x; foo(), x = y) { /* ... */ }

...