Create an Empty Array

// Create an empty array of Int type
let myArray = [Int]()

// Another way to create an empty array
let myArray2 : [Int] = []

// Create an empty array of String type
let myArray3 = [String]()

[raw_html_snippet id=”cookbookpagecoursesheader”]

Unit Testing Swift Mobile App

Apply Test-Driven Development(TDD) process to iOS mobile app development in Swift Preview this video course.