---
title: "Discussion on \"JavaScript Lexical Environment\" | Hashnode"
description: "Discussion on \"JavaScript Lexical Environment\". In JavaScript, code in a script or a function body has a hidden object called the Lexical Environment object. The object can not be gotten from the code; It only describes how the code works.\nThere are two components of the lexical environment object..."
url: "https://hashnode.com/posts/javascript-lexical-environment/6068927c1ed1783ab06331e6"
---

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

Discussion

# [JavaScript Lexical Environment](https://techstack.hashnode.dev/javascript-lexical-environment?utm_source=hashnode&utm_medium=feed)

In JavaScript, code in a script or a function body has a hidden object called the Lexical Environment object. The object can not be gotten from the code; It only describes how the code works. There are two components of the lexical environment object...

Apr 3, 2021 · 6 min read · techstack.hashnode.dev  
Updated Jun 24, 2021  
Read the article

-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Bello](https://hashnode.com/@techstack)

@techstack · Nigeria

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

web developer

Web technology related ➡️ blogger || video creator || author || online instructor || YouTuber || web developer || freelancer

## Responses 1

Markdown supported · ⌘↵ to post

[Neha Soni](https://hashnode.com/@nehasoni)

[Apr 4, 2021](https://hashnode.com/posts/javascript-lexical-environment/6068927c1ed1783ab06331e6/comment/60691fce1ed1783ab0633795)

Very well described

[Bello](https://hashnode.com/@techstack)

[Apr 4, 2021](https://hashnode.com/posts/javascript-lexical-environment/6068927c1ed1783ab06331e6/comment/60691fce1ed1783ab0633795#reply-606926d8b17dc439b747aa82)

It is really good to hear that. Thanks [Neha Soni](https://hashnode.com/@nehasoni).
