Promises essay 60 words
Answers
Answered by
1
Answer:
In short, a Promise is an object that once called upon, will evetually resolve or reject and return a response based on some criteria that is specified within the Promise object. Promises really start to shine when we interact with the Promises' response by chaining then and utilizing catch to handle failure cases.
Explanation:
Promises are used to handle asynchronous operations in JavaScript. They are easy to manage when dealing with multiple asynchronous operations where callbacks can create callback hell leading to unmanageable code.
Similar questions
Social Sciences,
2 months ago
Computer Science,
2 months ago
Math,
6 months ago
Hindi,
6 months ago
English,
11 months ago
English,
11 months ago
History,
11 months ago