Intro
This is my typescript student notes studied from Dataland Technology (Sir. Tin Htut Aung).
About Typescript
Typescript ကို Microsoftမှ ၂၀၁၂တွင် မိတ်ဆက်ခဲ့ပါသည်။ Typescriptကိုအသုံးပြုခြင်းဖြင့် Type Safety ဖြစ်ခြင်း၊ Early Error Detection၊ လွယ်ကူရိုးရှင်း၍ ဖတ်ရလွယ်သဖြင့် အခြားdeveloperများမှလည်း မိမိ၏ ကုတ်ကို နားလည်လွယ်ခြင်း စသည့် အကျိုးကျေးဇူးများရရှိနိုင်ပါသည်။
Typescript can use for client-side as Reactjs & Angularjs like javascript
Typescript can use for Server-Side with Nodejs like javascript
Javascript Vs Typescript
Typescript
Javascrip
medium-large applications
small-scale applications
Static programming Language
Dynamic programming language
Compiled language (tsc compiler)
Interpreted language
Compilation Errors
Runtime Errors
Browser can't run directly
Browser can run directly
Javascript Syntax
let score = 50;
Typescript Syntax
let score:number = 50;
Install Typescript
Local project install
# Initialize a Node.js Project
npm init -y
# Install TypeScript
npm install typescript --save-dev
Global install
npm install -g typescript
Check Typescript
tsc -v
# or
tsc --version
compile .ts to .js
tsc file_name.ts
# output: file_name.js
Last updated