The benefit of this approach over anonymous closures is that you declare the global variables upfront, making it crystal clear to people reading your code.
JavaScript Modules: A Beginner’s Guide
Preethi Kasireddy
3.7K100

Another benefit would be to prevent the situation where someone accidently changes the global variable.