Swift - Optionals
What will be printed by this Swift code?
let first: String? = "Hello"
let second: String? = nil
if let a = first, let b = second {
print(a + b)
} else {
print("Missing value")
}What will be printed by this Swift code?
let first: String? = "Hello"
let second: String? = nil
if let a = first, let b = second {
print(a + b)
} else {
print("Missing value")
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions