![]() |
Knowledge Programming JavaScript . while |
|
|
||||||||||||||||||
|
do while looping is used to make sure the statements
within the loop are executed at least once,
since the first check is done after the first loop is
already executed. |
|||||||||||||||||
|
do |
|||||||||||||||||
|
myVariable=0; // make sure you start with an initialized myVariable do
|
|||||||||||||||||
|
execute some statements at least once lastNumber = 1; |
|||||||||||||||||