🔰module scope
🚧 施工中
Last updated
🚧 施工中
Last updated
JS ⟩ concepts ⟩ scope ⟩ module
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).