Programming in Swift: Fundamentals
Oct 19 2021 · Swift 5.5, iOS 15, Xcode 13
Part 1: Core Concepts
08. Challenge: Optionals
Leave a rating/review
Notes: 08. Challenge: Optionals
Update Notes: The student materials have been reviewed and are updated as of October 2021.
Heads up... You've reached locked video content where the transcript will be shown astext.
It’s time for your next challenge! You can find the challenge in the “Challenge - Optionals” page of the playground you’ve been using, or you can download a new one from the resources for this video. Open it up, and try solving the challenge questions on your own, then keep watching to compare your work to ours. Good luck!
let hasAllergies = true
var dogName: String?
dogName = hasAllergies ? nil : "Mango"
let parsedInt = Int("10")