Executing functions in objects
<p>Can we execute a function within our object itself? See code below:</p>

<pre><code>obj = {
     name:function(){alert("maizere");}
};
</code></pre>

<p>As <code>obj.name()</code> also means the same i.e getting access to an object and executing the function. Why not execute inside the object itself, something like this:</p>

<pre><code>obj = {
     name:function(){
         alert("maizere");
     },
     name();
};
</code></pre>

<p>Since <code>obj = new obj() == { obj() }</code> right?</p>

<p>I was unsuccessful when I tried this. Is anything wrong here or am I wrong?</p>
