Closure
1. 🔑 Definition of Closure
👉 A closure is created when a function “remembers” the variables from its lexical scope, even when that function is executed outside of its original scope.
Functions in JS always carry their lexical scope along with them...
yesamitsingh.hashnode.dev3 min read