Closure is when a function is able to remember and access its lexical scope even when that function is executing outside its lexical scope.
Source: https://astronautweb.co/javascript-lexical-scope/
Closure is when a function is able to remember and access its lexical scope even when that function is executing outside its lexical scope.
Source: https://astronautweb.co/javascript-lexical-scope/