ANScommerce interview question

1. What is a Promise in JavaScript? A Promise is an object that represents the eventual completion (resolve) or failure (reject) of an async operation. 2. States of a Promise? Pending Fulfilled Rejected