🔰"for-init" scope

JSsyntaxfor loopsfor ⟩ "for-init" scope

a special scope (in a for loop) that lies between the outer scope and inner block scope. ( 👉 similar to function name scope )

雖說似乎有這樣一個奇怪的 for-init scope,但裡面 let 變數的表現其實更像是 block-scoped👉 scopes matter with closures

Last updated