SOURCE

console.log('Start');

setTimeout(() => {
  console.log('setTimeout');
}, 0);

Promise.resolve().then(() => {
  console.log('Promise');
});
const pro=new Promise((resolve,reject)=>{
console.log(1)
resolve(3)
console.log(2)
})
// pro.then((res)=>{
//     console.log(res)
// })

console.log('End');
console 命令行工具 X clear

                    
>
console