---
title: "Discussion on \"Closures in JavaScript\" | Hashnode"
description: "Discussion on \"Closures in JavaScript\". Introduction\nClosures are created when the function is defined, allowing the nested child function to access the parent's variables even when the parent function has finished its execution. Now let's learn Closures with examples.\nExamples\n\nFrom the b..."
url: "https://hashnode.com/posts/closures-in-javascript/653a9d97e3e8550d3ed9d99c"
---

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

Discussion

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

Introduction Closures are created when the function is defined, allowing the nested child function to access the parent's variables even when the parent function has finished its execution. Now let's learn Closures with examples. Examples From the b...

Oct 26, 2023 · 3 min read · vishal21121.hashnode.dev  
Updated Oct 28, 2023  
Read the article

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

## Written by

[vishal singh](https://hashnode.com/@vishal21121)

@vishal21121 · India

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

My name is Vishal Singh, and I am currently pursuing my B.Tech degree from Future Institute of Engineering and Management. I am also a web developer with experience in HTML, CSS, JS, Node js, Express js MongoDB and others. I am passionate about creating high-quality and user-friendly websites that provide value to their users.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
