---
title: "Discussion on \"Understanding JavaScript Closure with example\" | Hashnode"
description: "Discussion on \"Understanding JavaScript Closure with example\". Joy of getting to the end\n\nAll's well that ends well.\n\nWelcome to the last post of the series JavaScript: Cracking the Nuts. I want to thank you all for liking the series so far. There is another reason why this article is special to me. This is my 5..."
url: "https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f"
---

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

Discussion

# [Understanding JavaScript Closure with example](https://blog.greenroots.info/understanding-javascript-closure-with-example?utm_source=hashnode&utm_medium=feed)

Joy of getting to the end All's well that ends well. Welcome to the last post of the series JavaScript: Cracking the Nuts. I want to thank you all for liking the series so far. There is another reason why this article is special to me. This is my 5...

Jul 25, 2020 · 5 min read · blog.greenroots.info  
Updated Oct 28, 2021  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#beginner](https://hashnode.com/tag/beginner)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 6

Markdown supported · ⌘↵ to post

[Favourite Jome](https://hashnode.com/@Favourite)

[Sep 28, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f7189bb1c510d72d074a265)

Awesome explanation 👍

[Tapas Adhikary](https://hashnode.com/@atapas)

[Sep 28, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f7189bb1c510d72d074a265#reply-5f71989d1c510d72d074a358)

Thank you [Jome Favourite](https://hashnode.com/@Favourite), Glad it was helpful.

[Prateek Aher](https://hashnode.com/@prateek_aher)

[Aug 23, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f42f2e882f012743b26a5de)

What a wonderful way to explain. Dude! You're a wizard.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 24, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f42f2e882f012743b26a5de#reply-5f4331c2b9aefd741aeaf87f)

Thanks [Prateek Aher](https://hashnode.com/@prateek_aher)! Great that you liked it.

[Nabeelah](https://hashnode.com/@nabeelah)

[Aug 14, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f36b6ddb6059d3aec17cb9c)

Absolutely loved how you broke down complex topics in these series 🔥

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 14, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f36b6ddb6059d3aec17cb9c#reply-5f36b8ed877a013acb03ca7a)

Thank you Nabeelah! Very happy that, it was useful..

[Victoria Lo](https://hashnode.com/@victoria)

[Jul 25, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1c920ce8630d03fc85366e)

Thanks for this series! :) And congrats on your 50th post!

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Jul 25, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1bdc56fda91d7624833f53)

Thanks for starting this series, it's been amazing so far. Love this one!!

[Subha Chanda](https://hashnode.com/@nemo)

[Jul 25, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1bd1df4eb41a74cd0cc073)

I was searching for an article about Closures recently. Thank you for writing this! 😊

[Subha Chanda](https://hashnode.com/@nemo)

[Jul 25, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1bd1df4eb41a74cd0cc073#reply-5f1c3fc4f4016901885cc20c)

Absolutely 😊 I just discovered you were from JGEC!! 😀 [Tapas Adhikary](https://hashnode.com/@atapas)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Jul 25, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1bd1df4eb41a74cd0cc073#reply-5f1c403ef4016901885cc211)

[Subha Chanda](https://hashnode.com/@nemo) yeah I am! You too? Small world..

[Subha Chanda](https://hashnode.com/@nemo)

[Jul 26, 2020](https://hashnode.com/posts/understanding-javascript-closure-with-example/5f1bc0f7f4d28a73e540269f/comment/5f1bd1df4eb41a74cd0cc073#reply-5f1d333ff4016901885cc6c5)

Not actually! I am doing B. Sc in CS from A. C. College. 😅 [Tapas Adhikary](https://hashnode.com/@atapas)
