What Does an Environment Mean in JavaScript? (SUPER Simple Explanation!)

An environment is a collection of:

  • bindings
  • and their values

that exist at any given time.

Starting up a program creates an active environment

Environments at the start of a program are surprisingly not empty.

In fact, these environments start with bindings that are standard to the JavaScript language.

Like when you turn on a computer, bindings are already loading up that interact with the mouse and keyboard.

Leave a Comment