MNManjunath Nagendraindevmanju.hashnode.dev·Jul 18, 2025 · 3 min readLexical scope and ClosuresLets us understand lexical environment and closures with a simple analogy. Imagine you're in the city of Bengaluru. This city represents the global environment in JavaScript. Within this city, there are two apartment complexes — Prestige and Brigade ...00