skip to Main Content

Javascript – Nested Promises Execution Order

I was reading about nested promises and encountered this coding challenge in the tutorials. Can someone explain the execution order of this code? new Promise((resolve) => { new Promise((res) => { console.log("c"); resolve(3); res(2); }).then((response) => console.log(response)) }).then((res) => console.log(res));…

VIEW QUESTION
Back To Top
Search