3 ms·
That's a good thing, and I'm not sure what you mean about it being a dynamic check.
by IshKebab 6y ago
That's a good thing, and I'm not sure what you mean about it being a dynamic check.
- titzer 6y agoIt's a dynamic error if you access a let-bound variable before it is actually initialized. In most other languages that have lexically-scoped declarations, it simply would not be visible. So I think JS's choice is actually a regression.