New course! Every coder should learn Generative AI!
Try a free lesson0
Swift, for safety reasons, requires all variables and constants to always hold a value. Swift created the typeOptional that can either hold no value (None) or hold some value (Some), like in:
var myNumber: Int?