What's the difference between defining these objects?
<p>What's the difference between these?</p>

<pre><code>var person = {
    age: 25,
    name: "David"
};

var person = (function() {
    var name = "David", age = 25;
}());
</code></pre>

<p>My question really is, what does <code>(function(){}())</code> do?</p>
