🚧 施工中
JS ⟩ concepts ⟩ scope ⟩ module
scope for code running in module mode.
in a module there's no "module-wide scope object" for these top-level declarations to be added to as property.
( 👉 compare: global var / function is global object property❗️)
global variables don't get created by declaring variables in the top-level scope of a module (module scope).
module
ringojs ⟩ Understanding module and global scopearrow-up-right ⭐️
YDKJS: Scope & Closures (v.2) ⟩ Ch. 4 ⟩ ES Modulesarrow-up-right
Scopearrow-up-right
Last updated 3 years ago