Skip to content
Quiz · Arrays and tuples · lesson 7 of 7

Quiz — the type with as const

Which type does TypeScript infer for sizes?

TypeScript
const sizes = ["S", "M"] as const;