---
title: "Discussion on \"Understanding closure in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding closure in JavaScript\". A closure is an inner function that has access to the outer (enclosing) function’s variables — scope chain\n The closure has three scope chains\n\nIt has access to its own scope (variables defined between its curly brackets)\n\nIt has access to the outer ..."
url: "https://hashnode.com/posts/understanding-closure-in-javascript/638f5a9df931507d8b7108ab"
---

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

Discussion

# [Understanding closure in JavaScript](https://chinecherem.hashnode.dev/understanding-closure-in-javascript?utm_source=hashnode&utm_medium=feed)

A closure is an inner function that has access to the outer (enclosing) function’s variables — scope chain The closure has three scope chains It has access to its own scope (variables defined between its curly brackets) It has access to the outer ...

Dec 6, 2022 · 2 min read · chinecherem.hashnode.dev  
Read the article

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

## Written by

[Chinecherem Ugwuanyi](https://hashnode.com/@chinecherem)

@chinecherem · Enugu, Nigeria

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

software developer

I am a backend and mobile developer, I study computer science at National Open University, and I am currently doing my diploma in software engineering at AltSchool Africa. I am a tech enthusiast.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
