And if you have heard of a closure, but don’t quite know what it is, you’re even more in the right place!
You’ve already seen two sides of functions—you’ve seen the formal, declarative side of function declarations, and you’ve seen the looser, more expressive side of function expressions. Well, now it’s time to introduce you to another interesting side of functions: the anonymous side.
By anonymous we’re referring to functions that don’t have names. How can that happen? Well, when you define a function with a function declaration, your function will ...