🚧 施工中
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". 👉 RingoJS
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 & Closrues
ringojs ⟩ Understanding module and global scope ⭐️
Scope
Function
Last updated 2 years ago