리스트안에 다양한 데이터 타입이 존재하면 각각이 무엇을 나타내는지 알아내기 어려움
Objects는 각각의 데이터들이 무엇을 나타내는지 알아볼 수 있음
Objects는 property를 가진 데이터를 저장하도록 해줌
Objects는 중괄호를 사용
const player = {
name: "nico",
points: 10,
fat: true,
};
console.log(player.name);
console.log(player["name"]);
player.fat = false;
console.log(player.fat);//false
player.points = player.points + 15;
console.log(player.points);//25
player.lastName = "potato";
console.log(player.fat);//potato