Joined June 2013
·

Kevin

Germany
·
·

Posted to JavaScript inheritance for Beginners over 1 year ago

One improvement may be to write dog.prototype = Object.create( pet.prototype ). Otherwise the constructor of the base class gets called two times. But I this is a really nice method ;)

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills