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

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

myObj.someMethod();
// "hello"