How do you define an array of strings in TypeScript?
Key points
- TypeScript allows for multiple ways to define arrays
- string[] and Array are interchangeable for creating arrays of strings
- Both options are commonly used in TypeScript code
Ready to go further?
