← My Reducer's Switch Stopped Being Exhaustive. `as const` Fixed It.Quiz
as const: literal types, readonly tuples, and exhaustive switches
Eight questions on why object and array literals widen, what as const actually does to the type, and the readonly trade-off that comes with it.
questions8
pass mark70%
resultsat the end
No account needed. Answer all 8 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.