Medallia Interview Question

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

Interview Answer

Anonymous

Sep 23, 2022

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