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

# E0159: unexpected literal in parameter list; expected parameter name

A function parameter can be a variable name, an array destructuring, or an
object destructuring. It is a syntax error for a function parameter list to
contain a number literal:

```javascript
function drop(array, count, 0) {
  return array.slice(count);
}
```

To fix this error, make the literal a default value of a parameter:

```javascript
function drop(array, count = 0) {
  return array.slice(count);
}
```

See also: E0151

Introduced in quick-lint-js version 0.3.0.