Promise Promise Object
Last updated: 2026-09-09
Promise Promise Object
Promise is the core async object. Three states: pending/fulfilled/rejected.
| Category | Async |
|---|---|
| ES version | ES1 |
📝 Syntax
const p = new Promise((resolve, reject) => { ... });
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
done
💡 Tip States are irreversible once changed.
ℹ️ info async/await is syntactic sugar.
🏷️ Related Items
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
❓ FAQ
QThree states?
Apending/fulfilled/rejected.
QPromise vs callbacks?
AChaining and unified error handling.
QHow to create resolved?
APromise.resolve(value).