Beginner
TypeScript
Q40 / 100
What is the result type of "5 as const" assigned to a variable?
Correct! Well done.
Incorrect.
The correct answer is C) the literal type 5
C
Correct Answer
the literal type 5
Explanation
Using "as const" narrows the type to the literal value 5 instead of the broader "number" type.
Progress
40/100