How do you handle errors in a chain of Promises? | Promises | javascript Interview Questions | NextRound.in