Addy references two variations to the Module pattern:
It states that globals can be passed in as arguments to the module’s anonymous function, but if they are already in the global scope why do they need to be passed into the function? Can they not already be accessed inside the function without being passed in?
Am I ccrrect in saying that the only variation to the original pattern is that the module object and it’s propeties/methods are created privately, and then returned by the anonymous function? Effectively, exporting (some of) our private scope.
Thanks in advance for your help!