Question 1/6: Which of these are valid in Swift?
Hint: Arrays and dictionaries can be made in two different ways, for example
Array<Int> both create arrays. Click to show.
var favoriteColors = Dictionary<String, String>()
This code is valid Swift.
var measurements = [Double]
When creating a new empty array you must place empty parentheses after the type, e.g.
Oops – that's not correct.