Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptkeyof and indexed accessSingle-choice MCQ2 views

What is the type of x?

const arr = ["a", "b"] as const;\ntype X = typeof arr[number];