Closures in JavaScript: How Functions Actually Remember variables

A classic definition of closure according to MDN is: a closure is the combination of a function bundled together with references to its…