In earlier parts to this we built our own MyPromise Class/generator which had quite a few capabilities of Promise.
Part 1 …
Promise in JavaScript is an abstraction which is used for asynchronous programming.
It is a construct which promises a value in future.
Async programming in JavaScript can be done using following techniques.