Beginner
Swift
Q3 / 100
What is an optional in Swift?
Correct! Well done.
Incorrect.
The correct answer is B) A type that can hold either a value or nil
B
Correct Answer
A type that can hold either a value or nil
Explanation
Optional<T> (shorthand T?) represents a value that may or may not exist. Must be unwrapped to access the value.
Progress
3/100