JavaScript: The Ultimate Crash Course Learning JavaScript within a Day with New Approach for Faster Programming (Save Time and Effort) by Shepal JM

JavaScript: The Ultimate Crash Course Learning JavaScript within a Day with New Approach for Faster Programming (Save Time and Effort) by Shepal JM

Author:Shepal, JM [Shepal, JM]
Language: eng
Format: azw3, mobi
Publisher: Shepal Publishing
Published: 2016-03-27T16:00:00+00:00


The do…while statement

This kind of statement will repeat until a specified condition evaluates to false. This is how it looks:

do

statement

while (condition);

your statements will be executed once before the condition is checked. If you want to execute more than one statements, you use a block statement ({ ... }) so as to group those statements. If the conditions turns out to be true, the statement will execute again. The condition should be checked after every execution. If you find it false, the execution is stopped and total control is now passed on to the statement that follows do…while. Here is an example:

do {

i += 1;

console.log(i);

} while (i < 5);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.