Select Page

Optionals Example Code

// 2 ways to print the highest score… var studentsAndScores = [”Amy”: 88, “James”: 55, “Helen”: 99] func highestScore(scores: [String: Int]) { //OPTION 1 BELOW HERE! let a = studentsAndScores [”Amy”]!...