// 컬렉션, 오브젝트
let list = [1,2,3,4];
let hobby = ["축구","농구"];
// 키 : 밸류
let user = {
id:1,
username:"ssar",
hobby:hobby
};
// username을 변경하고 싶을 때
user.username = "cos";
// hobby의 0번지를 변경하고 싶을 때
hobby[0] = "탁구";
console.log(user.id);
console.log(user.username);
console.log(user.hobby);
console.log(user.hobby[0]);

Share article