Programming-Idioms

History of Idiom 78 > diff from v59 to v60

Edit summary for version 60 :
New JS implementation by user [etienneguerlain]

Version 59

2017-06-06, 13:49:00

Version 60

2017-11-05, 16:09:02

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);
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