Interface

ํ™•์žฅ interface -extends๋ฅผ ์‚ฌ์šฉ type - &๋ฅผ ์‚ฌ์šฉ interface Student { major: string studentId: number } const mike: Student = { major: 'computer', studentId: 202212011 } type Student = { major: string studentId: number } const mike: Student = { major: 'computer', studentId: 202212011 } ์„ ์–ธ์  ํ™•์žฅ interface์—์„œ๋Š” ์ƒˆ๋กœ์šด ์†์„ฑ์„ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด ๊ฐ™์€ ์ด๋ฆ„์„ ์„ ์–ธํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, type์€ ์„ ์–ธ์  ํ™•์žฅ์ด ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค. interface Student { major: string studentId: nu..
์†”B
'Interface' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก