Geoff Chappell - Software Analyst
SKETCH OF HOW RESEARCH MIGHT CONTINUE AND RESULTS BE PRESENTED
for ( [ expression ] ; [ expression ] ; [ expression ] ) [ statement ]
for ( [ var-declaration ] ; [ expression ] ; [ expression ] ) [ statement ]
The parentheses are required, as are the two semicolons within. The placeholders are all optional.
The for keyword may also introduce a for-in statement, which has its own syntax and behaviour.