1const promise = new Promise((resolve, reject) => { 2 console.log(1); 3 setTimeout(() => { 4 console.log("timerStart"); 5 resolve("success"); 6 console.log("timerEnd"); 7 }, 0); 8 console.log(2); 9}); 10promise.then((res) => { 11 console.log(res); 12}); 13console.log(4);