Beginner
Go (Golang)
Q24 / 100
What does recover() do?
Correct! Well done.
Incorrect.
The correct answer is B) Stops a panic and returns the value passed to panic()
B
Correct Answer
Stops a panic and returns the value passed to panic()
Explanation
recover() is only useful inside a deferred function. It stops the panic and returns the panic value, allowing the program to continue.
Progress
24/100