function ROOM (n) {
this.namber = n
this.cupboard = {
edit : function() {
// body
},
delete : function() {
// body
}
}
this.__proto__ = ParentObj;
}
var ParentObj = {parentProp:true};
var Room = new ROOM(1);
console.log(Room);
console.log(Room.parentProp);