Question d’entretien chez EPAM Systems

Explain promise and write code for promises & its related methods.