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

# E0124: cannot declare variable named keyword

It is a syntax error to declare a variable named certain keywords like
`debugger` or `while`:

```javascript-ignoring-extra-errors
function parseVar(s) {
  let var = s.split()[0];
  let value = s.split()[1];
  return {var, value};
}
```

To fix this error, pick a different variable name:

```javascript
function parseVar(s) {
  let varName = s.split()[0];
  let value = s.split()[1];
  return {varName, value};
}
```

Introduced in quick-lint-js version 0.2.0.