The keyword used to check whether a given property exists or is valid in
JavaScript is the in
keyword. It returns true
if the specified
property/key exists in the object or its prototype chain, and false
otherwise. For example:
javascript
'propertyName' in object
This is a straightforward way to verify the presence of a property in an object