Skip to content

Instantly share code, notes, and snippets.

@eimg
eimg / typescript.md
Last active June 11, 2025 07:20
TypeScript - လိုတိုရှင်း

TypeScript - လိုတိုရှင်း

JavaScript ဟာ Dynamic Type Language တစ်ခုပါ။ Data Type တွေကို Language က လိုသလို အလိုအလျှောက် ပြောင်းလဲအလုပ်လုပ်ပေးတဲ့အတွက် ရေးသားသူက Type ကိစ္စ သိပ်ခေါင်းစားနေစရာမလိုဘဲ ရေးစရာရှိတဲ့ကုဒ်တွေကို ခပ်မြန်မြန် ရေးသွားလို့ရပါတယ်။

let value;        // undefined
value = "Alice";  // string
value = 42;       // number
value = true;     // boolean
<style>
.border-1px {
border: 1px solid #e3e3e3;
}
.screen {
display: flex;
background-color: white;
}
.device-inner-content {
align-self: flex-end