Optionals and nil in Swift
Optionals: Optional in swift represents that a value may or may not exist. Example: Though we have explicitly assigned value in name variable, in real life app, we may take input from user. User may forget to enter the name. In that case, this name variable will by empty. If value is not exist in … Read more