---
title: "Discussion on \"What About JavaScript Closures?\" | Hashnode"
description: "Discussion on \"What About JavaScript Closures?\". a closure is created when a function is defined within another function, allowing the inner function to access the variables of the outer function."
url: "https://hashnode.com/posts/what-about-javascript-closures/6598f9f52a07b34550d00d0d"
---

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

Discussion

# [What About JavaScript Closures?](https://sahil4510.hashnode.dev/what-about-javascript-closures?utm_source=hashnode&utm_medium=feed)

a closure is created when a function is defined within another function, allowing the inner function to access the variables of the outer function.

Jan 6, 2024 · 2 min read · sahil4510.hashnode.dev  
Read the article

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

## Written by

[Sahil Karwani](https://hashnode.com/@sahil321)

@sahil321

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

Software engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
