Create a new object with a specified prototype object and properties.
Source Code
let personProto = {
greet() {
console.log(`Hello, ${this.name}`);
}
};
let person = Object.create(personProto);
person.name = 'John';
person.greet(); // Hello, John