Patterns of JavaScript: Singleton
Explained by video game levels
Singletons are handy when you need to coordinate system-wide actions from one place—for example, database connection pools.
Singletons reduce the need for global variables, which is critical in JavaScript because it limits namespace pollution and name collisions.