Hacker News new | ask | show | jobs
by ams6110 5038 days ago
there's no block scope. Only function scope.

There is global scope as well, and it's (unfortunately in most cases) the default.

1 comments

Also there is block scope. let { ... }
AFAIK, let is a Mozilla only feature.