---
title: "Discussion on \"Understanding the Magic of Lexical Environments in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding the Magic of Lexical Environments in JavaScript\". A lexical environment consists of Environment Record and a reference to the outer environment"
url: "https://hashnode.com/posts/understanding-the-magic-of-lexical-environments-in-javascript/644a76f120b4090cab503c16"
---

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

Discussion

# [Understanding the Magic of Lexical Environments in JavaScript](https://theshrish.hashnode.dev/understanding-the-magic-of-lexical-environments-in-javascript?utm_source=hashnode&utm_medium=feed)

A lexical environment consists of Environment Record and a reference to the outer environment

Apr 27, 2023 · 3 min read · theshrish.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#lexical-environment](https://hashnode.com/tag/lexical-environment)

## Written by

[Shrish Kerur](https://hashnode.com/@TheShrish46)

@TheShrish46 · Karnataka, India

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

I am a student currently learning MERN stack and writing and sharing my journey through blogs so that it could help to start your journey in

Hey I am Shrish, from Karnataka India. I am currently pursuing my Bachelor's degree in Computer Applications. I am currently MERN stack development. I share my learning and information about my projects through blogs so if that sounds interesting to you please do subscribe to my page and keep reading and learning. Feel free to say hi to me

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
