Beginner
Swift
Q25 / 100
What does the throws keyword signify on a function?
Correct! Well done.
Incorrect.
The correct answer is B) The function can throw errors that the caller must handle with do-catch or propagate with try
B
Correct Answer
The function can throw errors that the caller must handle with do-catch or propagate with try
Explanation
func parse() throws must be called with try: let result = try parse(). Errors propagate or are caught with do { try } catch { }.
Progress
25/100