How does the `Object.prototype.hasOwnProperty()` method work?
The hasOwnProperty() method is used to determine if an object has a specific property as its own property (not inherited from prototypes). It returns true if the object has the property, and false if it doesn't.