function Parent(name, age) {
this.name = name;
this.age = age;
console.log('Parent is running.');
}
function Child(name, age) {
Parent.apply(this, arguments);
}
Child.prototype = new Parent();
var instance = new Child('Allen', 5);
console.log(instance.name, instance.age);