title: Javascript the Good Parts Closure Syntax in the First Example
body: <p>The <em>Closure</em> section of chapter 4 has the following example. </p>
  
  <pre class="lang-js prettyprint-override"><code>var myObject = (function() {
      var value = 0;
  
      return {
          increment: function(inc) {
              value += typeof inc === 'number' ? inc : 1;
          },
          getValue: function() {
              return value;
          }
      }
  }());
  </code></pre>
  
  <p>Why is the function wrapped in an extra set of parenthesis? I've tested it without the parenthesis and the behavior is the same. Am I missing something here, or am I taking this too literally?</p>