# 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.

```javascript
let attempts = 0;

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

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/do-while-loop-javascript
