Hacker News .hn
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ams6110
on Aug 26, 2012
|
parent
|
context
|
favorite
| on:
Vanilla JS, fast, lightweight, cross-platform fram...
there's no block scope. Only function scope.
There is global scope as well, and it's (unfortunately in most cases) the default.
MatthewPhillips
on Aug 26, 2012
[–]
Also there is block scope. let { ... }
evilduck
on Aug 27, 2012
|
parent
[–]
AFAIK, let is a Mozilla only feature.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
There is global scope as well, and it's (unfortunately in most cases) the default.