Keshavkrishna·Aug 15I Built a Mini JavaScript Engine to Finally Understand Hoistingvar is not moved to the top. Lexical Environments are created. Here’s the code that proved it to me.
Keshavkrishna·Jul 27Closures in JavaScript: How Functions Actually Remember variablesA classic definition of closure according to MDN is: a closure is the combination of a function bundled together with references to its…
Gaurav Singh·Jun 24JavaScript Lexical Scope, Lexical Environment, Scope Chain & Closure — Explained Like the JS EngineMost developers memorize definitions of Lexical Scope, Lexical Environment, and Closure without understanding what actually happens inside…
Chamika Dilshan·Mar 20Understanding Javascript Lexical Environment And Execution ContextIn today’s article we are going to deep dive into a very attractive javascript concept. We will go under the hood, how Lexical Environment…
Umair Saeed·Dec 14, 2025What is Closures in JavaScriptBefore grasping closures, we must understand the environment they operate in: the Lexical Environment, which defines Lexical Scoping.A response icon1