Changes

Jump to: navigation, search

JavaScript Flow Control and Looping

1 byte added, 13:20, 24 April 2007
= JavaScript ''do ... while'' loops
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 while statement and repeats the evaluation of i. This process repeats until i is greater than 10, at which point the loop exits.
=== JavaScript ''do ... while'' loops ===

Navigation menu