Programming-Idioms

History of Idiom 78 > diff from v60 to v61

Edit summary for version 61 :
[JS] Changed "condition" to "c" in the while parenthesis to conform with the lead paragraph statement

Version 60

2017-11-05, 16:09:02

Version 61

2017-11-05, 16:12:27

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Extra Keywords
until
Extra Keywords
until
Code
do {
   something();
} while (condition);
Code
do {
   something();
} while (_c);
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while
Origin
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while
Origin
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while