Swift - Optionals
Which of the following Swift code snippets correctly unwraps an optional
String? using if let?String? using if let?if let requires declaring a new constant to unwrap the optional safely.unwrapped to hold the unwrapped value.! inside the block, which is unsafe.if let, invalid syntax.= instead of binding, invalid syntax.if let syntax requires a new constant assignment [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions