---
title: "Discussion on \"Scope and the Scope Chain\" | Hashnode"
description: "Discussion on \"Scope and the Scope Chain\". The scope of a variable is a region of our code that can access the variable. \nThere are three scopes in JavaScript: global scope, function scope, and block scope. \nTypes of Scope in JavaScript\n1. Global Scope\nThe global scope is the scope that you a..."
url: "https://hashnode.com/posts/scope-and-the-scope-chain/6149a8cdcb77f11a64ce5128"
---

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

Discussion

# [Scope and the Scope Chain](https://suleimanyunus.dev/scope-and-the-scope-chain?utm_source=hashnode&utm_medium=feed)

The scope of a variable is a region of our code that can access the variable. There are three scopes in JavaScript: global scope, function scope, and block scope. Types of Scope in JavaScript 1. Global Scope The global scope is the scope that you a...

Sep 21, 2021 · 4 min read · suleimanyunus.dev  
Read the article

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

## Written by

[Suleiman Yunus](https://hashnode.com/@suleyunus)

@suleyunus · Kisumu, Kenya

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

Software Engineer

Product-minded frontend developer with fullstack foundations, focused on building scalable, maintainable applications that serve real users. I thrive where clean architecture meets product velocity — helping teams ship faster, align better, and deliver thoughtfully. I’ve modernized legacy platforms, built design systems from scratch, and collaborated closely with product and design to ensure what we build ships — and sticks.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
