TypeScript တွင် array များအတွက် any type
any type ကို အသုံးပြု၍
မည်သည့် data type ၏တန်ဖိုးများကိုမဆို ပါဝင်နိုင်သော
array တစ်ခုကို ကြေညာနိုင်ပါသည်:
let arr: any[] = ['abs', true, 3];
အောက်ပါ code ကို TypeScript ဖြင့် ပြန်ရေးပါ:
let arr = [1, '2', '3', 4, 5];
console.log(arr);