iOS Build a Simple iPhone App with Swift v5 Collections and Random Numbers Recap

Josh Banks
Josh Banks
1,428 Points

To get the amount of values in an array we would type something like this : swift let array = ["cat", "dog", "kitten", "

To get the amount of values in an array we would type something like this : swift let array = ["cat", "dog", "kitten", "puppy"] let amountOfItemsInArray = array.

1 Answer

Steven Parker
Steven Parker
185,909 Points

An array has a "count" property that you can use to find out how many items it has.