Professional Development · Technology

Getting Your Head Around JavaScript Closures

One concept that is considered “advanced” in JavaScript is closures. MDN defines closures as: A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closures are created every time… Continue reading Getting Your Head Around JavaScript Closures