Juliet C. answered 07/05/19
Multiple semesters of teaching Swift in iOS app development courses
In order to create an empty array, you need to declare the type of the elements that are going to be in the array. For example:
or
If you need to assign an empty array to an existing variable, you can just use the square bracket notation since the existing variable will already have its type declared: