array of strings swift code example
Example 1: array swift
var students = ["Ben", "Ivy", "Jordell"]
Example 2: swift append to array
var numbers = [1, 2, 3, 4, 5]
numbers.append(100)
print(numbers)
// Prints "[1, 2, 3, 4, 5, 100]"
var students = ["Ben", "Ivy", "Jordell"]
var numbers = [1, 2, 3, 4, 5]
numbers.append(100)
print(numbers)
// Prints "[1, 2, 3, 4, 5, 100]"