Q. Which lifecycle hook is used to clean up subscriptions?
β
Correct Answer: (C)
ngOnDestroy
Explanation: ngOnDestroy is used to clean up resources like subscriptions.