Closed sabres207 closed 3 years ago
In Scope & Closures book - chapter 2. In the marbles and buckets metaphor, you point out the global, function and for scopes - but if actually also creates a scope of its own.
Thanks for the so far awesome books
if (and other statements with blocks) do not always create scopes, only if there's a let / const inside the block.
if
let
const
In Scope & Closures book - chapter 2. In the marbles and buckets metaphor, you point out the global, function and for scopes - but if actually also creates a scope of its own.
Thanks for the so far awesome books