Changes

Jump to: navigation, search

JavaScript Flow Control and Looping

No change in size, 18:01, 1 February 2016
m
Text replacement - "<google>ADSDAQBOX_FLOW</google>" to "<htmlet>adsdaqbox_flow</htmlet>"
}
</pre>
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
The ''initializer'' typically initializes a counter variable. Traditionally the variable ''i'' is used for this purpose. For example:
</pre>
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
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.

Navigation menu