---
title: "Discussion on \"How code works in JavaScript part-2(understanding scope & scope chain)\" | Hashnode"
description: "Discussion on \"How code works in JavaScript part-2(understanding scope & scope chain)\". Scope and scope chain are some fundamental concepts of JavaScript , which helps us understand how JavaScript works. Learning about these concepts can improve our debugging skills.\nScope\nScope refers to a space or an area in which a particular variabl..."
url: "https://hashnode.com/posts/how-code-works-in-javascript-part-2understanding-scope-and-scope-chain/6142293c82e95e55a87391fd"
---

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

Discussion

# [How code works in JavaScript part-2(understanding scope & scope chain)](https://chirag-gupta.hashnode.dev/how-code-works-in-javascript-part-2understanding-scope-and-scope-chain?utm_source=hashnode&utm_medium=feed)

Scope and scope chain are some fundamental concepts of JavaScript , which helps us understand how JavaScript works. Learning about these concepts can improve our debugging skills. Scope Scope refers to a space or an area in which a particular variabl...

Sep 15, 2021 · 4 min read · chirag-gupta.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#scope](https://hashnode.com/tag/scope)
-   [#basics](https://hashnode.com/tag/basics)

## Written by

[Chirag Gupta](https://hashnode.com/@chirag-gupta)

@chirag-gupta · India

  
[View profile](https://hashnode.com/@chirag-gupta)

Frontend Developer | React | Next.js | Typescript

I am a frontend developer specialising in the React ecosystem.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
