Credit: frank mckenna in unsplash

Closure has been baffling mankind since its inception in JavaScript😉😁And yet if you look at it closely to understand how it works, it proves to be an incredibly elegant and simple construct. In this blog, along with theory, I am going to walk you through a handful of examples to build that mental, conceptual model that (hopefully) sticks around in your head, and you will never wonder what closure are, again.

These are the concepts that we are going to get comfortable with in this blog:

Aanchal Kapoor

A full stack programmer with a love for writing and teaching.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store