Changes

JavaScript Flow Control and Looping

31 bytes added, 14:47, 19 March 2009
JavaScript ''while'' loops
</pre>
<google>ADSDAQBOX_FLOW</google>
In the above example the ''while'' expression will evaluate whether i is less than 10. If it is already greater than 10 then the code in the braces is skipped and the loop exits without performing any tasks. If it is not greater than 10 the code in the braces is executed and the loop returns to the ''while'' statement and repeats the evaluation of i. This process repeats until i is greater than 10, at which point the loop exits.