The Closure section of chapter 4 has the following example.
var myObject = (function() {
    var value = 0;
    return {
        increment: function(inc) {
            value += typeof inc === 'number' ? inc : 1;
        },
        getValue: function() {
            return value;
        }
    }
}());
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?
 
    