unsigned function inside generic object
<p>I ran this on my console today for curiosity</p>

<pre><code>var x={function(){return 2}};
</code></pre>

<p>It works. But why? How that nameless function is called? I don't see a point for this syntax to work</p>