>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
Which type restricts a value to a specific constant such as the exact string 'ready'? | SWE Maxx
← Question bank
TypeScript · Multiple Choice
Difficulty: Medium
Which type restricts a value to a specific constant such as the exact string 'ready'?
Combining types
Data modeling
Choose your answer
A
Literal type
B
Tuple type
C
Readonly array
D
Union type
Check answer
More in TypeScript →