---
title: "Discussion on \"Part I : Understanding Closures in JS\" | Hashnode"
description: "Discussion on \"Part I : Understanding Closures in JS\". This is the Part I of the blog series in which I will explain Closures in Javascript using examples.\nLet us say that we want a function called addByX which takes an argument and increment its value by x. So, if we have addByTwo(n), it will return n+2..."
url: "https://hashnode.com/posts/understanding-closures-1/5f67bad16dfc523d0a8940e9"
---

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

Discussion

# [Part I : Understanding Closures in JS](https://rajatexplains.dev/understanding-closures-1?utm_source=hashnode&utm_medium=feed)

This is the Part I of the blog series in which I will explain Closures in Javascript using examples. Let us say that we want a function called addByX which takes an argument and increment its value by x. So, if we have addByTwo(n), it will return n+2...

Sep 20, 2020 · 3 min read · rajatexplains.dev  
Read the article

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

## Written by

[Rajat Jain](https://hashnode.com/@rajatexplains)

@rajatexplains · Bengaluru, India

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

Software Engineer II 👨‍💻 at Uber | ex-Microsoft | Javascript ❤️ | Mentor 👨‍🏫 at CodeAsylums | Tech Speaker 🗣️ | React | GraphQL

I am a UI/UX enthusiast currently working as an engineer in Uber. Prior to this, I was at Microsoft for 4 years working on their most loved and complex product Microsoft Teams. I have a professional experience of training students in software engineering and computer science concepts and helping them land their dream jobs.

## Responses 2

Markdown supported · ⌘↵ to post

[Bipin singh](https://hashnode.com/@singhbipin2117)

[Sep 25, 2020](https://hashnode.com/posts/understanding-closures-1/5f67bad16dfc523d0a8940e9/comment/5f6e66b4ade1fb598d439a23)

Great article

[Vinit Raut](https://hashnode.com/@vinitraut)

[Sep 21, 2020](https://hashnode.com/posts/understanding-closures-1/5f67bad16dfc523d0a8940e9/comment/5f68deac6dfc523d0a894dda)

Great article, explained closures beautifully!
