do while

do while is a loop that executes until the condition is false.

It executes at least once.

Syntax

do
{
    code
}
while(condition);

Examples

Internal

for

for in

for of

while

External

Mozilla Developer Network

Home Menu