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
2
Q
What is the meaning of “any” type?
A
It accepts literally any type of value. Try to avoid this
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
4
Q
What is a “Enum” data type?
A
A list of constants values
5
Q
What is “Literal Types” ?
A
They’re a way to represent specific exact values that a variable or property can hold