Medallia interview question

How do Promises work? How would you use this custom Promise we created to make a "fetch" call?

Interview Answer

Anonymous

23 Sept 2022

myPromise.then((resolve, reject) => {}, catch((error) => {}, finally(() =>{});