With reference to the description given in the Web Development modules topic, in the introduction it describes modules as being able to : " fix, and debug code more easily;
- reuse and recycle defined logic in different parts of our application;
- keep information private and protected from other modules;
- and, importantly, prevent pollution of the global namespace and potential naming collisions, by cautiously selecting variables and behavior we load into a program."
This sounds similar to libraries, so how does modules differ from libraries?