Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
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?
1st Dec 2016, 2:59 PM
Felipe Cruz
Felipe Cruz - avatar