JavaScript: The Good Parts was written by Doug Crockford, who has updated his example to look like this:
var obj = (function() {
var value = 0;
return {
increment: function(inc) {
value += typeof inc === "number" ? inc : 1;
},
getValue: function() {
return value;
}
};
}());
So the whole expression is within the brackets.
The idea of the outside brackets, which are not required, is that it makes it clear to developers that this is an intentionally self-executed function. So the value is readability.