Domanda di colloquio di Schbang

What is promises in node js

Risposta di colloquio

Anonimo

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.