This protects the global namespace from pollution.
(function() { var something = "a thing";
Now these temporary variables and functions are protected inside this external drop function. The code inside them can use them, but the global namespace is kept clean and free of dirty, unwanted variables.
The global namespace is a valuable resource. We all need to know about its importance for ourselves and, especially, for our children.
Pointy
source share