How to properly self-execute a closure
<p>I'm studying closures and the global scope, and am confused about when to use }()) vs. })().  It seems that I've lucked upon a situation where it doesn't matter which one I use.</p>

<pre><code>(function() {

    var myFunction = (function() {
        var i=100;
        return function() {
            return i++;
        }
    }());
    var X = myFunction();
    console.log(X);
    X = myFunction();
    console.log(X);

})();
</code></pre>
