title: Javascript new object (function ) vs inline invocation
body: <p>Is there any considerations to determine which is better practice for creating an object with private members?</p>
  
  <pre><code>var object = new function () { 
     var private = "private variable";
     return {
         method : function () { 
             ..dosomething with private;
         }
     }
  }
  </code></pre>
  
  <p>VS</p>
  
  <pre><code>var object = function () {
   ...
  }();
  </code></pre>
  
  <p>Basically what is the difference between using NEW here, and just invoking the function immediately after we define it?</p>