Put in order · JavaScript and TypeScript course · Module 6: TypeScript Basics
TypeScript Type Hierarchy
Order TypeScript types from most general to most specific:
Items to put in order
- string | number
- 'hello' (literal type)
- unknown
- string
You can check the correct answer by solving this task in the CodeWorlds game.