Comment

Comment by mananaysiempre

Also true of JavaScript pre-ES5, another language that on first glance seems to only have function scope: it actually does have block scope, but only for variables introduced in `catch` blocks. AFAIU that was the standard way for a dumb transpiler to emulate `let`.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton