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