> For the complete documentation index, see [llms.txt](https://lwin-moe-paing.gitbook.io/typescript-baby-by-lwin-moe-paing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lwin-moe-paing.gitbook.io/typescript-baby-by-lwin-moe-paing/basic-typescript/ts-array.md).

# TS - Array

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FyvWmLRS2rxf7q0JnceEC%2FTypescript%20Array%20Syntax.png?alt=media&amp;token=e3f6595c-69da-4977-b1fc-adae9643e181" alt=""><figcaption></figcaption></figure>

`let data: number[] = [1, 2, 3];`  ရေးထုံးနဲ့ Numbre Type Array ကို ရေးသားနိုင်ပါတယ် ။&#x20;

လေးထောင့်ကွင်း အဖွင့်အပိတ် `[]` ရဲ့အရှေ့မှာ Type တန်ဖိုးကို သတ်မှတ်ပေးရုံပါ ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FxPEjDEPdRPiN3XaAtrtX%2FTypescript%20Array%20With%20Values%20Syntax.png?alt=media&amp;token=a69baea0-9243-42e3-b28a-61901eb70064" alt=""><figcaption></figcaption></figure>

မိမိစက်ထဲမှာ `type` တွေပြောင်းလဲ သတ်မှတ်ပြီး ရေးသာနိုင်ပါတယ် ။ ထူးခြားသွားမှာက လက်ခံရလိုက်တဲ့ variable နောက်မှာ dot  `(.)` ရိုက်လိုက်တာနဲ့ TypeScript Server ကနေ push, shift အစရှိတဲ့ array methods တွေကို Feedback ပေးလာမှာဖြစ်ပါတယ် ။

<figure><img src="https://4062235122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7tekcoDYDaKhlNreT5uK%2Fuploads%2FhVtX7uqz8FuaqlYKLzTO%2FTypescript%20Array%20With%20Values%20Generic%20Syntax.png?alt=media&amp;token=081a8954-f908-4851-8a7d-8b8a04fd7247" alt=""><figcaption></figcaption></figure>

နောက်တစ်နည်းနဲ့ ရေးသားနိုင်ပါသေးတယ် ။&#x20;

Array ရဲ့နောက်မှာ Less-than Sign `<` နဲ့ Greater-than Sign `>` ကြားမှာ Type ထည့်သွင်း ရေးသားနည်းပါ ။
