🚧 施工中
Last updated 2 years ago
Was this helpful?
JS ⟩ concepts ⟩ environment
JavaScript code can be run:
in browser (client code)
in web worker
in Node.js (server code)
environments
browser (client code)
Node.js (server code)
global object in each environment:
browser: window (a Window object)
Window
: (a object)
: (an object called )
every environment exposes some of its own built-ins into the :
:console, (including ), timers,
console
YDKJS: Scope & Closures (v.2) ⟩ Chapter 4: Around the Global Scope
Global object
timers
web worker:??? (anything else?)
Node.js:???
WorkerGlobalScope
global