3 ms·
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 al
by anonymoushn 2y ago
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 2y agoFair, but that's a property of for loops. Variable in closures are still always captured by reference.