function SuperType(){
this.name = name;
this.colors = ['red','blue'];
}
SuperType.prototype.sayName = function(){
console.log(this.name);
}
function SubType(name, age) {
SuperType.call(this, name);
this.age = age;
}
SubType.prototype = new SuperType();
SubType.prototype.constructor = Subtype;
SubType.prototype.sayAge = function(){
console.log(this.age)
}