How to add a string array type annotation to a variable or a constant in TypeScript?
Originally Published Here ๐!
To add a string array type annotation to a variable or a constant, you can declare the variable name followed by a : (colon) symbol, then the string type with [] (opening and closing square brackets) symbol.
For example,...
melvingeorge-me.hashnode.dev3 min read