Optionals

what are the optional

  • an optional has a two possibilities. either there is a value or there is no value.

nil value

Force Unwrapping optional binding with if let nil coalescing optional try with throwing functions optional binding with guard let optional chaining