I'm in the middle of a typescript course. We're learning generics and the following example is shown
const hobbies: Array<string> = ['coding', 'eating']
Now before I learned to check an array of type using the following syntax
const hobbies: string[] = ['coding', 'eating']
Can anyone explain me what the difference is?