> 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-undefined.md).

# TS - Undefined

<figure><img src="/files/Ve7mK6JtKbmrZIaTTUJi" alt=""><figcaption></figcaption></figure>

`let undefinedData : undefined = undefined;` ရေးထုံးနဲ့ `undefined` Type တွေကို သတ်မှတ် လို့ရပါတယ် ။ တကယ်တော့ ဒါဟာလည်း အဓိပ္ပါယ်မရှိပါဘူး  ။

<figure><img src="/files/ytMAgG7LIA3NKUtzMCwA" alt=""><figcaption></figcaption></figure>

`let undefinedInfer = undefined;`  ကိုယ်တိုင် မသတ်မှတ်ပဲ inference ပုံစံက `any type` အဖြစ် အလိုအလျောက် သတ်မှတ်သွားမှာပါ ။&#x20;

```typescript
let undeInfer = undefined;

undeInfer = "string"; // any type ဖြစ်သွားတဲ့အတွက် ဘယ် Type ဖြစ်ဖြစ်လက်ခံလို့ရသွားပါတယ် ။

undeInfer = 2; // Error Message လည်း မပြတော့ပါဘူး

console.log(undeInfer);
```
