How does the `Object.prototype.hasOwnProperty()` method work? | Objects | javascript Interview Questions | NextRound.in