Monthly Archives: February 2018

Promise in real world

What is a promise A promise represents the eventual result of an asynchronous operation¬† A promise is an object that is used as a placeholder for the eventual result of a deferred and possibly asynchronous computation. A promise can be created as var myPromise = new Promise(function(resolve,reject){ }); From above, […]