One of the main problems of software development is managing complexity and – related to it – decoupling pieces of code. While most programming languages provide built-in semantics for defining and consuming modules, JavaScript has none and relies on external libraries for that. There are three major approaches for defining modules in JavaScript:
CommonJS Asynchronous Module Definition ECMA 6 Syntax I have found some good articles on the topic.
Read more →