function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}
Car.prototype.getYear = function() {}
function manualnew(contructor) {
console.log(arguments)
var args = Array.prototype.slice.call(arguments, 1)
console.log(args)
var obj = {}
obj.__proto__ = contructor.prototype;
contructor.apply(obj, args)
var contructores = contructor.apply(obj, args)
console.log('contructores', contructores)
return contructores ? contructores : obj;
}
var s = manualnew(Car, 'a', 'b', 1234)
console.log('s :',s)