How to define and initialize public class fields in the constructor itself in TypeScript?
Originally Published Here ๐!
To define and initialize public class fields in the constructor itself, you need to write the class field names with the public visibility modifier keyword in the constructor function's parameter brackets in TypeScript.
...
melvingeorge-me.hashnode.dev3 min read