Lexical Environment in JavaScript: A Lexical Environment in JavaScript is a place where JavaScript keeps track of the variables and functions available in a particular scope . It also keeps a reference to the outer scope , so JavaScript can find variables that are not available in the current sc...
Source: [Dev.to](https://dev.to/abimanyu_p_9e75124634d2a4/lexical-environment-in-javascript-5813)