How to define and initialize protected readonly class fields in the constructor itself in TypeScript?
Originally Published Here ๐!
To define and initialize protected and readonly class fields in the constructor itself, you need to write the class field names with the protected followed by the readonly visibility modifier keywords in the constructor ...
melvingeorge-me.hashnode.dev4 min read