void

ํƒ€์ž…๋ณ„์นญ ํƒ€์ž… ๋ณ„์นญ์„ ์ด์šฉํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•˜๋“ฏ ํƒ€์ž…์„ ๋ณ„๋„๋กœ ์ •์˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. type ํƒ€์ž…_์ด๋ฆ„ = ํƒ€์ž… ํ˜•ํƒœ๋กœ ํƒ€์ž…์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. //ํƒ€์ž…๋ณ„์นญ type User = { id: number; name: string; nickname: string; birth: string; }; // ๊ฐ™์€ ์Šค์ฝ”ํ”„ ๋‚ด์—์„œ๋Š” ์ค‘๋ณต์ •์˜ X function func(){ type User = { // ์ด ์Šค์ฝ”ํ”„ ๋‚ด์—์„œ๋Š” User๋ฅผ ์ด๋Ÿฐ์‹์œผ๋กœ ์ •์˜, ๋ฐ–์—์„œ๋Š” ์ €๋Ÿฐ์‹์œผ๋กœ ์ •์˜ } } let user: User ={ id: 1, name: "์ •์ง€์‘", nickname:"Becky", birth: "1999.06.30", } let user2: User ={ id:2, name:"์ด๋™์›…", nickname: "์ด๋™๊ณฐ..
becky(์ง€์€)
'void' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก