โscopes matter with closures
JS โฉ value โฉ function โฉ closure โฉ scopes matter
the scoping effect of the initialization block can be understood as if the declaration happens within the loop body, but just happens to be accessible within the condition
and update
parts.
๐ MDN
Last updated