Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
TypeScript
hard
TypeScript
keyof and indexed access
Single-choice MCQ
2 views
What is the type of x?
const arr = ["a", "b"] as const;\ntype X = typeof arr[number];