News for hackers. Stuff that matters.
Re:Module Pattern in JavaScript and CoffeeScript by natefaubion on Friday May 31, 2013 @11:22AM (#5799126)
There aren't native modules in JS (though they are coming in ES6). The module pattern is a way of having private scope by wrapping everything in a closure. So yes, the module pattern just creates a closure and returns an object (or assigns to global scope) with its public members.

There are no comments on this comment yet.