---
title: "Discussion on \"Lexical scope and Closures\" | Hashnode"
description: "Discussion on \"Lexical scope and Closures\". Lets us understand lexical environment and closures with a simple analogy.\nImagine 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 ..."
url: "https://hashnode.com/posts/lexical-scope-and-closures/687a695512b874cb1f6612be"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lexical scope and Closures](https://devmanju.hashnode.dev/lexical-scope-and-closures?utm_source=hashnode&utm_medium=feed)

Lets 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 ...

Jul 18, 2025 · 3 min read · devmanju.hashnode.dev  
Read the article

-   [#lexical-environment-javascript](https://hashnode.com/tag/lexical-environment-javascript)
-   [#javascript-closure-explained](https://hashnode.com/tag/javascript-closure-explained)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-closures](https://hashnode.com/tag/javascript-closures)
-   [#javascript-scope](https://hashnode.com/tag/javascript-scope)
-   [#lexical-scope](https://hashnode.com/tag/lexical-scope)
-   [#closures-in-javascript](https://hashnode.com/tag/closures-in-javascript)

## Written by

[Manjunath Nagendra](https://hashnode.com/@Manju90)

@Manju90

  
[View profile](https://hashnode.com/@Manju90)

Manju

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
