Lookup checks own properties, then follows prototype links until a match or null. Object.getPrototypeOf(value) returns an object's actual prototype. For an ordinary constructor called with new, its .prototype normally becomes the new instance's prototype. Object.hasOwn tests own properties, while in checks the chain too.
Follow-up Interview Question · If an object shadows an inherited data property, what can deleting the own property reveal?