Engrain by ByteRush

JS.15.04 SeniorCore — asked often

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
  • then returning 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

Promises/A+

What you will practise

  • implement MyPromise passing provided tests

Interview questions this answers

  • Implement a basic Promise class with then.