swift declare optional values

Swift
// Optional values are types that can contain nil
var optionalValue: String? // this can be done with more than strings, but for this example that's what was used
Source

Also in Swift: