In JavaScript, you can define object properties on the fly with Object.defineProperty. This is useful if you want your properties to be read-only or similar. Think of a storage object that has a maximum value that shouldn’t be overwritten:| oida.dev | TypeScript, Rust
If you are doing traditional OOP with TypeScript, the structural features of TypeScript might| oida.dev | TypeScript, Rust