but I can’t think of a situation where I’d prefer `var` over `let`
JavaScript ES6+: var, let, or const?
Eric Elliott
84628

what about “try/catch”? you can use var inside `try` and this variable will be accessible outside the block. But with “const/let” you have to write extra line.

Show your support

Clapping shows how much you appreciated Цымбал Евгений’s story.