function createObj(o) { let clone = Object.create(o); clone.sayHi = function() { console.log('Hi'); } return clone; } let person = { name: "Kevin", age: 25, sayHello: function() { console.log('Hello'); } } let another = createObj(person); another.sayHi(); // Hi another.sayHello(); // Hello console.log(another.name);// Kevin console.log(another.age); // undefined