December 2019
Beginner
464 pages
10h 31m
English
In This Chapter
• Understand what closures are
• Tie together everything you’ve learned about functions, variables, and scope
By now, you probably know all about functions and all the fun functiony things that they do. An important part of working with functions, with JavaScript, and (possibly) life in general is understanding the topic known as closures. Closures touch upon a gray area where functions and variable scope intersect (Figure 9.1).
FIGURE 9.1
Closures.
Now, I am not going to say any more about closures, for this is something best explained by seeing code. Any words I add right now to define or describe what closures ...