Change the card
Your friend moves city or has a birthday. Objects can be updated, grow new properties, and lose old ones. Today you'll also meet a second way to read properties: square brackets.
Update, add, delete
const friend = { name: "Pemba", city: "Namche", age: 24 };
friend.age = 25;
friend.job = "guide";
delete friend.city;
console.log(friend);
console.log(friend.city);