top-level scope
JS ⟩ concepts ⟩ scope ⟩ top-level
top-level scope relative to a JS file.
in Node.js:module scope ( top-level this ===
module.exports
)in browser:
script mode: global scope.
module mode: module scope
Last updated
Was this helpful?
JS ⟩ concepts ⟩ scope ⟩ top-level
top-level scope relative to a JS file.
in Node.js:module scope ( top-level this === module.exports
)
in browser:
script mode: global scope.
module mode: module scope
Last updated
Was this helpful?