# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0085.md

# E0085: do-while loop is missing '(' or ')' around condition

`do`-`while` loops have a condition after the `while` keyword. It is a syntax
error to write a condition without either `(` or `)`:

```javascript
let name;
do {
  name = prompt('What is your name?');
} while (name === '';
```

To fix this error, write `(` before the condition or `)` after the condition:

```javascript
let name;
do {
  name = prompt('What is your name?');
} while (name === '');
```

Introduced in quick-lint-js version 0.2.0.