> For the complete documentation index, see [llms.txt](https://strctr.gitbook.io/programming/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strctr.gitbook.io/programming/01-languages/javascript/01-language/e-controls/e2-exception-handling/02-optional-catch-binding.md).

# 02. Optional Catch

The shorthand syntax for `catch` expression will be available in ES2018:

```javascript
try {
    ···
} catch {
    ···
}
```

There are two general reasons for omitting the `catch` binding:

* If you want to completely ignore the error.
* You don’t care about the error or you already know what it will be, but you do want to react to it.

```javascript
let jsonData;
try {
  jsonData = JSON.parse(str); // (A)
} catch {
  jsonData = DEFAULT_DATA;
}
```
