---
title: "Discussion on \"Closures in javaScript\" | Hashnode"
description: "Discussion on \"Closures in javaScript\". what is a closure and how it works?\nIn computer programming, closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-scope at the time..."
url: "https://hashnode.com/posts/closures-in-javascript/635a19899a58113fd6cf8bdd"
---

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

Discussion

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

what is a closure and how it works? In computer programming, closure is the combination of a function and the lexical environment within which that function was declared. This environment consists of any local variables that were in-scope at the time...

Oct 27, 2022 · 1 min read · nikhilshetty.hashnode.dev  
Read the article

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

## Written by

[Nikhilshetty](https://hashnode.com/@kuro318)

@kuro318

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

Student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
