Q. How do you catch both resolved and rejected states of a Promise?
β
Correct Answer: (A)
then().catch()
Explanation: Chaining then() and catch() handles both resolve and reject outcomes.