A Promise implementation (Promises/A+ core)
Comes up in: Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- states
thenreturning a new promise- async reactions via queueMicrotask
- thenable adoption
catch,finally- static
resolve/reject - test against a subset of the A+ suite
Words you will know
What you will practise
- implement MyPromise passing provided tests
Interview questions this answers
- Implement a basic
Promiseclass withthen.