Error handling in promises interview question

Let’s quickly revise some of the fundamentals of the promises, before we jump into the best practices and anti-patterns for error handling in JavaScript promises. What is a promise? It is an object which...