When a Promise is pending and neither fulfilled nor rejected, it is in the ________ state.
- awaiting
- undefined
- completed
- idle
When a Promise is pending and hasn't been resolved or rejected, it is in the "awaiting" state. This is the initial state of a Promise before it is settled.
Loading...
Related Quiz
- You are building a game where a player must answer a series of questions. How would you structure the control flow to handle the player’s responses and determine the next action or question based on the response?
- What is the difference between chaining multiple .then() methods and using multiple await expressions?
- What considerations should be made when determining the expiration time of a JWT?
- What does the return statement do in a JavaScript function?
- What is the primary use of the spread operator in JavaScript?