0
4
GGGiovanny Gongora
Array types can be written in one of two ways. In the first, you use the type of the elements followed by [] to denote an array of that element type. If no types are declared, TypeScript will automatically assign a type depending on the types of the Array values.
const hobbies: string[] = ['Codiga', 'Assistant'];