title: how to custom set prototype chaining(constructor)?
body: <p>Im studing javascript chaining but i cant set constructor deep as i want.</p>
  
  <pre><code>function a() {}
  function b() {}
  function c() {}
  
  a.prototype.text1 = 'text1';
  b.prototype.text2 = 'text2';
  c.prototype.text3 = 'text3';
  
  a.prototype.constructor = b;
  b.prototype.constructor = c;
  
  var foo = new a();
  
  console.log(foo.text1) // it`s output 'text1'. yea~ it`s right!
  // But...
  console.log(foo.text3) // it`s output undefined. My intention was output 'test3'.
  </code></pre>
  
  <p>Why is this happening?
  What can I do?</p>
  
  <p>please help. thanks.</p>