let years: number[] = [’2021’, ‘2022’];
let menu: string | number[] = [’americano’, 4500];
let menu: (string || number)[] = [’americano’, 4500];
let menu: (string | number)[] = [’americano’, 4500];
let menu: Array<string | number> = [’americano’, 4500];
<aside> 💡 정답 : 4, 5
()
로 묶어주어야 한다.|
이다.</aside>
let user: [ **__A__** ,**__B__, __C__** ] = ['Jerry', 25, 'Male']
<aside> 💡 정답 : A: string, B: number, C: string
</aside>
let drink: [string, number] = [’cola’, 2500];
let drink: [string, string] = ['cola', '2500'];