Beginner
TypeScript
Q12 / 100
What does the "readonly" modifier do to a property?
Correct! Well done.
Incorrect.
The correct answer is B) Prevents it from being reassigned after initialization
B
Correct Answer
Prevents it from being reassigned after initialization
Explanation
readonly prevents a property from being reassigned after its initial assignment, enforced at compile time.
Progress
12/100