Loading…

What is Promises in Node JS?

It is a returned value by an asynchronous function to indicate the completion of the processing carried out by the function.

Example

                                        

var promise = doSomethingAync()

promise.then(onFulfilled, onRejected)

Suggest An Answer

No suggestions avaliable!

Latest post from Node js Interview Questions

Ask Question