퀴즈 · 3 questions
🔷 Types & Interfaces — 모양에 이름 붙이기
type alias, interface, structural typing, 생각보다 가까운 비교
Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01
type 과 interface 의 실용적 차이?Hint
type Color = 'red' | 'blue' 를 interface 로 시도해봐. 못 해 — 그게 차이 중 하나.02TypeScript 의 'structural typing' 은 무슨 의미?
Hint
Python 의 Protocol 이나 Go 의 interface 써봤으면 — 그게 다른 언어의 structural typing. TypeScript 가 같은 아이디어 더 멀리 가져갔어.
03왜
readonly 가 runtime 아니라 compile 시점만 강제?Hint
Foundations 트랙의 2-layer 정신 모델 떠올려.
readonly 는 완전히 type layer 에 살아.댓글 0
🔔 답글 알림 (로그인 필요)로그인 — 댓글을 남기려면 로그인해 주세요.
아직 댓글이 없어요. 첫 댓글을 남겨보세요.