title: Node.js Inheritance
body: <p>I have inherited a class from another JS, and added few prototype function over Parent functions. When i create a new instance of child, i want to call the constructor of parent. Please suggest a way.</p>
  
  <blockquote>
    <p><strong>Parent</strong> </p>
  </blockquote>
  
  <pre><code>function Parent() { .. } 
      Parent.prototype.fn1 = function(){};
      exports.create = function() {
      return (new Parent());
  };
  </code></pre>
  
  <blockquote>
    <p><strong>Child</strong> </p>
  </blockquote>
  
  <pre><code>var parent = require('parent');
  Child.prototype = frisby.create();
  function Child() { .. } 
  Child.prototype.fn2 = function(){};
  exports.create = function() {
      return (new Child());  
  };
  </code></pre>