---
title: "Discussion on \"Closure in JS\" | Hashnode"
description: "Discussion on \"Closure in JS\". The closure is a function that is bound together with its lexical environment.\n\nLexical environment is an environment where the function can access a variable declared in its parent environment\nClosure gives access to scope of outer function from inn..."
url: "https://hashnode.com/posts/closure-in-js/629f3f494d2584547c17f583"
---

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

Discussion

# [Closure in JS](https://dikshadhote.hashnode.dev/closure-in-js?utm_source=hashnode&utm_medium=feed)

The closure is a function that is bound together with its lexical environment. Lexical environment is an environment where the function can access a variable declared in its parent environment Closure gives access to scope of outer function from inn...

Jun 7, 2022 · 2 min read · dikshadhote.hashnode.dev  
Read the article

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

## Written by

[Diksha Dhote](https://hashnode.com/@DikshaDhote)

@DikshaDhote

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

Writing on papar makes it easier...whether it is code or life!!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
