difference between {} and function(){}
<p>I thought these were equivalent.</p>

<pre><code>var __Panel = {
 this.header = null;
};

var __Panel = function() {
 this.header = null;
};
</code></pre>

<p>The first one gives a compiler error "Expected identifier or string" for <code>this</code>, and "Expected ','" for <code>;</code>.</p>

<p>Can someone clarify this a little for me?</p>
