Problem Statement
readonly on a property means…
Explanation
readonly blocks reassigning the property, but it doesn’t deep-freeze nested objects. `as const` applies to expressions and narrows literals; `readonly` is a member-level modifier.
Code Solution
SolutionRead Only
class Config { readonly host = 'localhost'; }
const c = new Config();
// c.host = 'x'; // ❌ cannot assign to 'host' because it is a read-only property