---
title: "Discussion on \"Closures in JavaScript\" | Hashnode"
description: "Discussion on \"Closures in JavaScript\". A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function's scope from an inner function. In JavaScript, ..."
url: "https://hashnode.com/posts/closures-in-javascript/649933bb2d9c898b14a68a68"
---

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

Discussion

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

A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function's scope from an inner function. In JavaScript, ...

Jun 26, 2023 · 2 min read · indracit.hashnode.dev  
Read the article

-   [#closures-in-javascript](https://hashnode.com/tag/closures-in-javascript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Indracit S](https://hashnode.com/@indrajithij98)

@indrajithij98 · Chennai, India

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

Software Engineer

Software Engineer | JavaScript, React, Redux, Node JS, Express, MongoDB

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
