The hasOwnProperty() method returns a boolean indicating whether the object on which it is called has the specified property as its own property (as opposed to inheriting it).
Checkout this video:
The hasOwnProperty() method returns a boolean indicating whether the object on which it is called has the specified property as its own property (as opposed to inheriting it).
Checkout this video: