---
title: "Discussion on \"Javascript Placement Series(Part 2)  \nScope, Lexical Environment, Scope Chaining\" | Hashnode"
description: "Discussion on \"Javascript Placement Series(Part 2)  \nScope, Lexical Environment, Scope Chaining\". What is SCOPE ? \nScope - It determines the accessibility of variable, object, function from different part of the code.\n\n\nFor the above code variable b is within the scope of the function a( ). \nSo basically there are two type of scopes\n1 : Global sc..."
url: "https://hashnode.com/posts/javascript-placement-seriespart-2-scope-lexical-environment-scope-chaining/6334a7b541ad82ff8b80d55d"
---

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

Discussion

# [Javascript Placement Series(Part 2) Scope, Lexical Environment, Scope Chaining](https://aloksingh00.hashnode.dev/javascript-placement-seriespart-2-scope-lexical-environment-scope-chaining?utm_source=hashnode&utm_medium=feed)

What is SCOPE ? Scope - It determines the accessibility of variable, object, function from different part of the code. For the above code variable b is within the scope of the function a( ). So basically there are two type of scopes 1 : Global sc...

Sep 28, 2022 · 3 min read · aloksingh00.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)
-   [#scope-chain](https://hashnode.com/tag/scope-chain)
-   [#lexical-environment](https://hashnode.com/tag/lexical-environment)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Alok Ranjan Singh](https://hashnode.com/@aloksingh00)

@aloksingh00 · Kolkata, India

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

To be Engineer. Fronted Developer and Data Structure & Algorithm enthusiast

B-Tech final year student. Frontend developer and a coding enthusiast. Trying to make some place for me in this Tech world.

## Responses 2

Markdown supported · ⌘↵ to post

[Kirti Singh](https://hashnode.com/@kirtisingh14)

[Oct 9, 2022](https://hashnode.com/posts/javascript-placement-seriespart-2-scope-lexical-environment-scope-chaining/6334a7b541ad82ff8b80d55d/comment/634328830961ceed80d09d4b)

It's useful ..my all doubt is solved regarding the scope chaining and Lexical Environment. Thanks for Sharing.

[Rakesh Kumar Shaw](https://hashnode.com/@rakeshshaw)

[Sep 29, 2022](https://hashnode.com/posts/javascript-placement-seriespart-2-scope-lexical-environment-scope-chaining/6334a7b541ad82ff8b80d55d/comment/63358bb8e594fa4ba3b8c2b7)

Nice Article

[Alok Ranjan Singh](https://hashnode.com/@aloksingh00)

[Sep 29, 2022](https://hashnode.com/posts/javascript-placement-seriespart-2-scope-lexical-environment-scope-chaining/6334a7b541ad82ff8b80d55d/comment/63358bb8e594fa4ba3b8c2b7#reply-63358f73fa20fa4bc8e53878)

Thank you very much [Rakesh Kumar Shaw](https://hashnode.com/@rakeshshaw)
