do...while Loop

A loop that runs its body once before checking whether to repeat.

What is do...while Loop in JavaScript?

do...while Loop — A loop that runs its body once before checking whether to repeat.

let attempts = 0;

while (attempts < 3) {
    attempts++;
}

Level: Apprentice · More JavaScript terms at this level

Updated