What Is The Purpose Of Invoking The Close Function?

What Is The Purpose Of Invoking The Close Function? The main purpose of wrapping a function with close and open parenthesis is to avoid polluting the global space. The variables and functions inside the function expression became private (i.e) they will not be available outside of the function. Why use immediately invoked function expressions? An