Typescript Flashcards
1
Q
Typescript
A
A superset of Javascript that adds a compiler to catch errors through typescript specific features such as types, interfaces, etc. and outputs regular JS code after compilation
2
Q
Difference between JS and TS types
A
Javascript uses Dynamic types: resolves at runtime
Typescript uses Static types: set during development
3
Q
Typescript Core types
A
Number, Boolean, String
4
Q
Typescript Object types
A
A JS object with key-type pairs for type validation