🚧 施工中
JS⟩ scope ⟩ function scope
scope created with a function.
compare: block scope
var has no block scope❗️❗ - var only has function scope.
... each function gets its own scope, sometimes called the "activation object". 👉 RingoJSarrow-up-right
not block:
object literal / class / switch ( no block scope❗)
function's scope is different from a block scope❗
📗 You Don't Know JS Yet: Scopes & Closruesarrow-up-right
ringojs ⟩ Understanding module and global scopearrow-up-right ⭐️
Scopearrow-up-right
Functionarrow-up-right
Last updated 3 years ago