---
title: "Discussion on \"A basic guide to Closures in JavaScript\" | Hashnode"
description: "Discussion on \"A basic guide to Closures in JavaScript\". The Closure is a collection of all variables in scope at the time of function creation. To use closure, create a function inside another function which is called a Nested Function. The inner function will have access to the variables in the outer fun..."
url: "https://hashnode.com/posts/a-basic-guide-to-closures-in-javascript-9fc8b7e3463e/66baefc6ed87d1ed72d74174"
---

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

Discussion

# [A basic guide to Closures in JavaScript](https://freecodecamp.org/news/a-basic-guide-to-closures-in-javascript-9fc8b7e3463e?utm_source=hashnode&utm_medium=feed)

The Closure is a collection of all variables in scope at the time of function creation. To use closure, create a function inside another function which is called a Nested Function. The inner function will have access to the variables in the outer fun...

May 3, 2019 · 4 min read · freecodecamp.org  
Read the article

-   [#es6](https://hashnode.com/tag/es6)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#tech](https://hashnode.com/tag/tech)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Parathan Thiyagalingam](https://hashnode.com/@parathantl)

@parathantl · Sri Lanka

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

Student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
