Modules in JavaScript as an advantage
I'm relatively new to JavaScript and I possess OOP knowledge from other programming languages. I've been looking at the concept of modules for JavaScript, like this:

    var basketModule = (function() {
        var private= 10;
        return { 
            //public
        }
    }());
What I fail to understand is how this is supposed to be one of JS' most powerful features as so many claim. Isn't this just common OOP elements? Or maybe there's something I didn't fully understand. A friend has explained to me that it has something to do with the fact that JS is single-threaded, but I didn't get the benefits in that either.

Thanks.
Modules in JavaScript as an advantage
===

I'm relatively new to JavaScript and I possess OOP knowledge from other programming languages. I've been looking at the concept of modules for JavaScript, like this:

    var basketModule = (function() {
        var private= 10;
        return { 
            //public
        }
    }());
What I fail to understand is how this is supposed to be one of JS' most powerful features as so many claim. Isn't this just common OOP elements? Or maybe there's something I didn't fully understand. A friend has explained to me that it has something to do with the fact that JS is single-threaded, but I didn't get the benefits in that either.

Thanks.