34,333
edits
Changes
→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.