const alpha = { 1:"Z", 2:"Y", 3:"X", 4:"W", ... 24:"C", 25:"B", 26:"A" }; const thirdLetter = alpha[2]; const lastLetter = alpha[24]; const value = 2; const valueLookup = alpha[value];