how do you create a new empty object with a prototypal link to some other object?


const myPrototype = {
  someMethod: function () {
    console.log(this.someProperty);
  },
};

const myObj = Object.create(myPrototype);
myObj.someProperty = "hello";

myObj.someMethod();
// "hello"