Hey everyone! I'm having an issue with my JavaScript code. I'm getting a "Cannot read properties of undefined" error. Here's the specific problem I'm facing:

I have an object called person with properties like name, age, and city. I'm trying to access the name property, but it keeps throwing the error. Here's my code:

const person = {
  age: 25,
  city: "New York"
};

console.log(person.name);

Can someone help me understand why I'm getting this error?