Skip to content
JavaScript·Beginner·Conceptual·1 min read

What scope do catch parameters have?

Short interview answer

A catch parameter has a binding scoped to the catch block. Modern optional catch binding can omit it when the thrown value is not needed.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Scope and hoisting

Related questions