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

# E0055: unmatched indexing bracket

```config-for-examples
{
  "globals": {
    "friends": true
  }
}
```

It is an error to write the indexing operator `[` without its matching `]`:

```javascript
for (let i = 0; i < friends.length; ++i) {
  let friend = friends[i;
  console.log[(`Hello, ${friend}!`);
}
```

To fix this error, write the closing `]`, or remove the extraneous `[`:

```javascript
for (let i = 0; i < friends.length; ++i) {
  let friend = friends[i];
  console.log(`Hello, ${friend}!`);
}
```

Introduced in quick-lint-js version 0.2.0.