---
title: "Discussion on \"JavaScript Basics - Closures\" | Hashnode"
description: "Discussion on \"JavaScript Basics - Closures\". In the previous post, we learnt about of JavaScript Basics- Scopes & Hoisting.\nWe saw how variables and functions in local/function scope and block scope get restricted within that scope (they cannot be accessed outside the scope). \nIn this post, we'..."
url: "https://hashnode.com/posts/javascript-basics-closures/60a0e5b1b66a0b15ebfc910b"
---

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

Discussion

# [JavaScript Basics - Closures](https://devdebarshi.hashnode.dev/javascript-basics-closures?utm_source=hashnode&utm_medium=feed)

In the previous post, we learnt about of JavaScript Basics- Scopes & Hoisting. We saw how variables and functions in local/function scope and block scope get restricted within that scope (they cannot be accessed outside the scope). In this post, we'...

May 16, 2021 · 4 min read · devdebarshi.hashnode.dev  
Read the article

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

## Written by

[Debarshi Bhattacharjee](https://hashnode.com/@devDebarshi)

@devDebarshi · India

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

Frontend Developer | React | JavaScript

Self-taught Developer. Building stuff with React and Vanilla JavaScript. Learning and sharing my knowledge through blogs. Kotlin lover. Flutter Enthusiast. PS: I can make you go crazy with my JS questions.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
