new Promise((resolve, reject) => { // asynchronous operation // then in case of success resolve(); // or reject("failure reason"); });
0 Comments