Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptkeyof and indexed accessSingle-choice MCQ

What is the result of each indexed-access line?

type Scores = { 0: "low"; 1: "mid"; 2: "high" }; type A = Scores[1]; // line A type B = Scores[number]; // line B