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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Difference between JS and TS types

A

Javascript uses Dynamic types: resolves at runtime

Typescript uses Static types: set during development

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Typescript Core types

A

Number, Boolean, String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Typescript Object types

A

A JS object with key-type pairs for type validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly