javascript
// Check if 'age' exists in the object using hasOwnProperty()
if (myObject.hasOwnProperty('age')) {
  console.log('The key "age" exists in the object.');
} else {
  console.log('The key "age" does not exist in the object.');
}