---
title: "Discussion on \"Closure in js\" | Hashnode"
description: "Discussion on \"Closure in js\". Closure in JavaScript refers to the ability of a function to access and remember the values of variables declared outside of its own scope, even after the outer function has returned.\nWhen a function is defined within another function, the inner func..."
url: "https://hashnode.com/posts/closure-in-js/6448e1bb15ab461a893b2ab0"
---

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

Discussion

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

Closure in JavaScript refers to the ability of a function to access and remember the values of variables declared outside of its own scope, even after the outer function has returned. When a function is defined within another function, the inner func...

Apr 26, 2023 · 3 min read · raihan.hashnode.dev  
Read the article

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

## Written by

[Mostafa Raihan](https://hashnode.com/@raihan)

@raihan · Jashore, Bangladesh

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

software engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
