hlai888 (1) [Avatar] Offline
#1
BaseCar.prototype = { //2 engine : 'I4',
turbo : false,
wheels : 'basic',
getEngine : function() {
}, return this.engine;
drive : function() {
return 'Vrrrrooooooom - I'm driving!';
}; }

the prototype object literal is missing the constructor property,
constructor: BaseCar

for following lines to work correctly
PremiumCar.superclass.constructor.call(this);
jesus.garcia (463) [Avatar] Offline
#2
Re: Listing 10.1 bug
Wow! Thanks for that. I'll work to fix this.