JavaScript Functions At Run Time : Closures
Functions Retain Their Scope
It is important to recall that when an identifier (i.e., a variable) is used, the JavaScript engine will check the scope chain to retrieve the value for that identifier. The identifier might be found in the local scope (...
chibuezechukwuka.dev7 min read