퀴즈 · 3 questions
🏛️ Classes — TypeScript 의 OO
문법, access modifier, abstract, static, parameter property, TC39 decorator
Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01
private 와 #private 의 차이?Hint
두 형태에
obj['secret'] 접근 시도. TypeScript private 컴파일 잘 됨; JS private 가 throw 하거나 undefined 반환.02Parameter property 가 뭐 함?
Hint
Parameter property 없으면 필드 선언, constructor parameter, assignment 별도로 써. Parameter property 가 셋 다 합침.
03TC39 decorator 와 옛 TypeScript experimentalDecorators 차이?
Hint
Tsconfig 확인 —
experimentalDecorators: true 설정됐으면 옛 버전. 그 flag 없으면 TypeScript 5+ 가 Stage 3 써.댓글 0
🔔 답글 알림 (로그인 필요)로그인 — 댓글을 남기려면 로그인해 주세요.
아직 댓글이 없어요. 첫 댓글을 남겨보세요.