---
title: "Discussion on \"Understanding Closures in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding Closures in JavaScript\". During an interview for a front-end developer role, i was asked the question \"what are closures?\". And even though I've had about closures, I really don't know what they are and why they are important.\nSo, what are closures?\nTo understand closures,fi..."
url: "https://hashnode.com/posts/understanding-closures-in-javascript/5ebf3ed5a4db0c222f221ab6"
---

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

Discussion

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

During an interview for a front-end developer role, i was asked the question "what are closures?". And even though I've had about closures, I really don't know what they are and why they are important. So, what are closures? To understand closures,fi...

May 16, 2020 · moshood.hashnode.dev  
Read the article

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

## Written by

[Moshood Abidemi](https://hashnode.com/@Moshood)

@Moshood

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

Software Dev

## Responses 1

Markdown supported · ⌘↵ to post

[Iftikhar Hussain](https://hashnode.com/@iftikhar)

[May 22, 2020](https://hashnode.com/posts/understanding-closures-in-javascript/5ebf3ed5a4db0c222f221ab6/comment/5ec8284ea7a2c43b12377438)

Wao, a great note on closures.

[Moshood Abidemi](https://hashnode.com/@Moshood)

[May 22, 2020](https://hashnode.com/posts/understanding-closures-in-javascript/5ebf3ed5a4db0c222f221ab6/comment/5ec8284ea7a2c43b12377438#reply-5ec832a6627c645c120afbc0)

Thanks.
