Understanding Closures in JavaScript
Introduction
According to our friendly neighborhood teacher MDN Docs:
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
Function + it's lexical environment = ...
maitrakhatri.hashnode.dev3 min read