TypeScript Flashcards

1
Q

Built in types

A

All built in types of JS (Undefined, Null, String, Number, BigInT, Boolean and Symbol) + any, unknown, never, enum, tuple

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

What is the meaning of “any” type?

A

It accepts literally any type of value. Try to avoid this

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

What is a “Tuple” data type?

A

is a fixed-length array which each element has a particular type. A good practice is to made it just for two values

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

What is a “Enum” data type?

A

A list of constants values

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

What is “Literal Types” ?

A

They’re a way to represent specific exact values that a variable or property can hold

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