Swift - Optionals
Find the mistake in this Swift code:
let a: Int? = 5
let b: Int? = 6
if let a = a, let b = b {
print(a + b)
} else {
print("Error")
}Find the mistake in this Swift code:
let a: Int? = 5
let b: Int? = 6
if let a = a, let b = b {
print(a + b)
} else {
print("Error")
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions