---
title: "Discussion on \"Closures in JavaScript\" | Hashnode"
description: "Discussion on \"Closures in JavaScript\". In JavaScript, a closure is a function that refers variables in the outer scope from its inner scope. The closure preserves the outer scope inside its inner scope.\nTo understand the closures, you need to know how the lexical scoping works. Please ref..."
url: "https://hashnode.com/posts/closures-in-javascript/65f1920503a072e0405e0ede"
---

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

Discussion

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

In JavaScript, a closure is a function that refers variables in the outer scope from its inner scope. The closure preserves the outer scope inside its inner scope. To understand the closures, you need to know how the lexical scoping works. Please ref...

Mar 13, 2024 · 1 min read · vijayashree.hashnode.dev  
Read the article

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

## Written by

[Vijaya Shree](https://hashnode.com/@vijayashree)

@vijayashree

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

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
