Swift: using optionals?
Example:
var age: Int?
Swift introduces optionals to handle the absence of a value.
Solution:
if let actualAge = age { print("Age is (actualAge)") }
Example: Solution:Swift: using optionals?
Swift introduces optionals to handle the absence of a value.
var age: Int?
if let actualAge = age { print("Age is (actualAge)") }