Quiz · Asynchronous code · lesson 4 of 12Quiz — promise statesWhat is a promise, and what are its three states?[A]A promise is an object whose result is there from the moment it is created. It stays pending until someone calls then on it, and only then turns fulfilled with the value or rejected with the reason, which catch receives.[B]A promise is an object for a value that comes later, starting pending and then turning fulfilled or rejected. Calling then on it stops the program until it leaves pending, so the lines after then run only once the value is ready.[C]A promise holds a result that arrives later. It starts pending and becomes fulfilled or rejected, but each later resolve or reject call moves it to that new state again. A callback for the value goes in then, one for the reason in catch.[D]A promise is an object for a result that will be ready later. It starts pending, then becomes fulfilled with a value or rejected with a reason, and never changes again. then adds a callback for the value, catch for the reason.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackPromisesNext →Promises before timers