Pergunta de entrevista da empresa Schbang

What is promises in node js

Resposta da entrevista

Sigiloso

3 de mar. de 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.