What is a Promise in JavaScript?
- A A guarantee that code will not throw
- B An object representing the eventual completion or failure of an asynchronous operation
- C A synchronous callback
- D A type of loop
Answer
An object representing the eventual completion or failure of an asynchronous operation
A Promise is pending, then settles once as fulfilled or rejected and never changes again. async/await is syntax over the same objects.





