Need help with inheritance
Hi!
On page 108, you write "this.newMethod = ClassA;"
However, on page 109, you write "ClassB.prototype = new ClassA();"
Could you please explain why you have the new keyword in the second case, and no new keyword in the first place.
Please help help help
Thanks :)
|