function First(a, b) {
this.a = a;
this.b = b;
}
var first = new First(1, 2);
console.log(first);
function Second(c, d) {
First.apply(this, [1, 2]);
this.c = c;
this.d = d;
}
var second = new Second(3, 4);
console.log(second);
function First(a, b) {
this.a = a;
this.b = b;
}
var first = new First(1, 2);
console.log(first);
function Second(c, d) {
First.apply(this, [1, 2]);
this.c = c;
this.d = d;
}
var second = new Second(3, 4);
console.log(second);