---
title: "Discussion on \"Two types of Scopes in JS\" | Hashnode"
description: "Discussion on \"Two types of Scopes in JS\". 1: Local Scope\nLocal scope refers to the context within which variables are declared inside functions or code blocks (e.g., loops, conditionals). Variables declared within a local scope are only accessible within that specific function or block and a..."
url: "https://hashnode.com/posts/two-types-of-scopes-in-js/64fddf1e9c105240ef21deaa"
---

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

Discussion

# [Two types of Scopes in JS](https://krishnacool.hashnode.dev/two-types-of-scopes-in-js?utm_source=hashnode&utm_medium=feed)

1: Local Scope Local scope refers to the context within which variables are declared inside functions or code blocks (e.g., loops, conditionals). Variables declared within a local scope are only accessible within that specific function or block and a...

Sep 10, 2023 · 1 min read · krishnacool.hashnode.dev  
Read the article

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

## Written by

[Krishna](https://hashnode.com/@krisshnacool)

@krisshnacool

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

MERN Stack Dev....

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
