what is an array?

an array is a ordered collection of values in the same type

mutable vs immutable arrays?

  • when we creating an we should create it as a constant or variable

creating an Array

let animals = ["lion", "dog", "cat"]
let animals: [String] = []

Accessing element

check whether the array is empty

players.isEmpty //palyers is an array

count how many elements are in the array