A Beginner's Guide to Closures in JavaScript

added by JavaScript Kicks
9/25/2018 7:10:34 AM

601 Views

A closure is a function that has access to its outer function scope even after the outer function has returned. This means a closure can remember and access variables and arguments of its outer function even after the function has finished. Before we dive into closures, let's first understand the lexical scope.


0 comments