Y
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
MatthewPhillips
5038 days ago
Also there is block scope. let { ... }
link
evilduck
5038 days ago
AFAIK, let is a Mozilla only feature.
link