Re:Using const/let instead of var can make JavaScript code r...
by charliesome on Wednesday October 21, 2020 @02:00AM
(#24845143)
While the creation and destruction of a scope every loop iteration is the correct mental model for what this code does, there's no reason that implementations must actually perform any allocations - especially for an example like this where it is trivially determinable that no bindings escape the immediate scope.
[ Parent
| on HN ]
There are no comments on this comment yet.