© 2026 Hashnode
Unveiling JavaScript Scope, Lexical Environment, and Hoisting: Demystifying Key Concepts Scope: Where Variables and Functions Live Scope determines where you can access a specific variable or function in your code. It is directly dependent on the lex...

Closures were a rather daunting topic when I first got started with JavaScript. My hope for this article is for you to be able to appreciate the beauty of JavaScript functions and closures. The story of Lexical scope, scope chain and closures… Once u...

In this article I shall be discussing about Execution Context in Javascript and talk about its phases. The execution context is very important to understand when it comes to understanding what goes on inside a program and the environment where the pr...

A lexical environment is a fundamental concept in programming that refers to the set of variables, functions, and objects that are available for use at a particular point in your code. Every time you run a piece of code, a new lexical environment is ...
