|
Where should the initialization part of a loop be located in order to make it mentally easy to deal with? A good answer might be:
Just before the test part of a loop.
This is were |
Active For LoopHere is another example. Notice that the loop body is a block statement, and that there is only one statement nested inside the block. This is syntactically correct.
Here is a JavaScript version of this loop. |
QUESTION 6:
Do you think that the change part of the |