Mimic OOP
Closures let you save state. We can use closure with JavaScript objects to mimic objects in Object-Oriented programming (encapsulation: private state + behavior). Here is an example:
Modern JavaScript has Classes (to create objects) similar to Java and C++. JavaScript Classes are, in fact, functions. The process shown above is the underlying mechanics used by JavaScript to mimic Object-Oriented Programming.