August 2016
Beginner to intermediate
847 pages
17h 28m
English
Modules are used to mimic classes and focus on public and private access to variables and functions. Modules help in reducing the global scope pollution. Effective use of modules can reduce name collisions across a large code base. A typical format that this pattern takes is as follows:
Var moduleName=function() {
//private state
//private functions
return {
//public state
//public variables
}
}There are two requirements to implement this pattern in the preceding format:
Check the ...