Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anonymoushn
9 months ago
|
parent
|
context
|
favorite
| on:
On JavaScript's Weirdness
The behavior of "let" with for loops where the variable is declared more times than it is initialized, despite the source code having one declaration that is also the only initialization, is not very explicit.
sapiogram
9 months ago
[–]
Fair, but that's a property of for loops. Variable in closures are still always captured by reference.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: