title: Passing Object literal in prototype changes constructor?
body: <pre><code>function Person(name) {
     this.name = name;
  }
  
  Person.prototype = {
    sayName: function()  {
      console.log(this.name);
    },
  
   toString: function() {
     return "[Person " + this.name + "]";
    }
  };
  </code></pre>
  
  <p>When i pass the object literal in prototype it changes the constructor property, so that it now points to <code>Object</code> instead of <code>Person</code>. Why so ? pls someone explain.</p>