---
title: "Discussion on \"Function scope vs Block scope\" | Hashnode"
description: "Discussion on \"Function scope vs Block scope\". The scope is an important concept that manages the availability of variables. The scope is at the base closures, which defines the idea of global and local variables.\nFunction scope\nJavaScript has function scope: Each function creates a new scope.\nVa..."
url: "https://hashnode.com/posts/function-scope-vs-block-scope/61dd7b636226ab4f74bef3f9"
---

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

Discussion

# [Function scope vs Block scope](https://rahulneal.hashnode.dev/function-scope-vs-block-scope?utm_source=hashnode&utm_medium=feed)

The scope is an important concept that manages the availability of variables. The scope is at the base closures, which defines the idea of global and local variables. Function scope JavaScript has function scope: Each function creates a new scope. Va...

Jan 11, 2022 · 1 min read · rahulneal.hashnode.dev  
Read the article

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

## Written by

[Rahul tak](https://hashnode.com/@RahulNeal)

@RahulNeal

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

Do until You get it!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
