wiki/content/20201116154824-javascript_optional_catch_binding.md

386 B

date id title
20201116 ede05265-f991-4a4e-b782-e2b63917c365 JavaScript Optional Catch Binding

Description

Sometimes you don't care about the error and you're allowed to ignore it.

Proposal

Optional catch binding1

Syntax

try {
  // ···
} catch {
  // ···
}

Footnotes