Standard built-ins
Promise settlement
A promise is settled after fulfillment or rejection. Resolution is not synonymous with settlement: a promise may be locked to another pending promise.
Formal Syntax & Structure
javascript syntaxjavascript
pending → fulfilled | rejectedWorking Example
Example Snippetjavascript
const p = new Promise(resolve => { console.log("executor"); resolve(4); });p.then(n => console.log(n));console.log("after");