Schbang interview question

What is promises in node js

Interview Answer

Anonymous

3 Mar 2022

A Promise in Node means an action which will either be completed or rejected. In case of completion, the promise is kept and otherwise, the promise is broken. So as the word suggests either the promise is kept or it is broken. And unlike callbacks, promises can be chained.