Closure
Function along with its lexical scope is known as a closure.
Lexical scope is the ability of a function scope to access variables from the parent scope. We call the child function to be lexically bound by that of the parent function.
function x() {
...
twinkalp10.hashnode.dev3 min read