Prototype chaining, Constructor, Inheritance
<p>I'm playing with javascript prototype. I'm new to it so I've got a small question.</p>

<p>I'm using this <a href="http://mckoss.com/jscript/object.htm" rel="nofollow">article</a> as a guide.</p>

<p>I've got a Product defined and a Book defined. what is the purpose of <code>Book.prototype.constructor = Book();</code> this. I can't figure out. I'm able to call parent constructor with and without it both successfully.</p>

<pre><code>Book.prototype = new Product;
Book.prototype.constructor = Book; // What's the purpose of this
</code></pre>

<p>Here's my jsFiddle <a href="http://jsfiddle.net/hqy2M/6/" rel="nofollow">link</a></p>
