Notes
Modules
stub on why JavaScript modules exist, with a self-executing anonymous function to keep code out of the global namespace
JavaScript
Why?
- to avoid cluttering the global namespace
self-executing anonymous function
1!function() {
2 function foo() {
3 // blah
4 };
5
6foo();
7}();