var objProto = {
greet: function() {
console.log(this.greeting + " World");
}
};
var Greeting = function(term) {
this.greeting = term;
};
Greeting.prototype = objProto;
var obj1 = new Greeting("Hi");
console.log(obj1 instanceof Greeting);
console.dir(obj1.constructor);
console.dir(obj1);