JS Fundamentals #16.1 var vs let inside loop and closures
1. Lexical Environment (LE) Basics
A lexical environment is a container where JS stores variable bindings and a reference to its outer environment.
New LE creation is triggered by:
Function execution → each function call gets a new LE.
Block scop...
pushpesh-js-articles.hashnode.dev2 min read