---
title: "Discussion on \"Lexical Scope & Scope Chain: Dibs on Variables & Functions\" | Hashnode"
description: "Discussion on \"Lexical Scope & Scope Chain: Dibs on Variables & Functions\". Learn how JavaScript decides which variables a function can access: lexical environment and scope chain, with debugger screenshots and examples."
url: "https://hashnode.com/posts/lexical-scope-and-scope-chain-dibs-on-variables-and-functions/6227a56c67104e8316e3f179"
---

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

Discussion

# [Lexical Scope & Scope Chain: Dibs on Variables & Functions](https://pulpmint.hashnode.dev/lexical-scope-and-scope-chain-dibs-on-variables-and-functions?utm_source=hashnode&utm_medium=feed)

Learn how JavaScript decides which variables a function can access: lexical environment and scope chain, with debugger screenshots and examples.

Mar 7, 2022 · 6 min read · pulpmint.hashnode.dev  
Updated Oct 11  
Read the article

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

## Written by

[Manmohan Singh](https://hashnode.com/@pulpmint)

@pulpmint · Punjab, India

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

Building things for the Web

I am Manmohan Singh. A web developer based in India. Working with JavaScript and Figma. Building things for the Web. Crafting pixel-perfect, secure and scalable web experiences with great attention to detail. I enjoy working at the intersection of design and engineering, where great user experience meets robust and clean code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
