javascript:prototype
<p>when the new object is constructed ,The object is set up to delegate any properties which haven't been explicitly set up to its constructor's prototype. That means that we can change the prototype later, and still see the changes in the instance.</p>

<p>first:</p>

<pre><code> function Foo(){}
 foo=new Foo();
 Foo.prototype={};
 foo.constructor==Foo//true.why is this happening since construtor prototype is empty object 
</code></pre>

<p>so the statement are not working as per the definition.right or wrong?
but if i do this than result is different</p>

<p>second:</p>

<pre><code> function Foo(){}
  Foo.prototype={};
 foo=new Foo();

 foo.constructor==Foo//false as aspected
</code></pre>

<p>again 
third:</p>

<pre><code>  function Foo(){}
  Foo.prototype={};
   Foo.prototype.name="Maizere";
 foo=new Foo();

 foo.name==Maizere//true.The definition at the top is applying here,if so why the definition not working in the first: example
</code></pre>

<p>plz help with simple english.i m really getting headache.</p>
