// 7강 타입도 변수에 담아쓰세요 type 키워드 써서 & readonly // type alias (타입 변수 만들기) // 작명할때 type은 영어 대문자로 시작하는게 관습. // union type , obeject type등 여러개 쓸 수 있다. type Animal = string | number | undefined; let animal: Animal = 123; // object type alias 적용해보기 type Human = { name: string; age: number }; let human: Human = { name: "jung hee", age: 27 }; // js에서 const 변수는 등호로 재할당을 막는 역할 // const로 담은 object 수정은 자유롭게 가능...