📜  javascript 事件循环 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.855000             🧑  作者: Mango

代码示例5
console.log('Hi!');

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

console.log('Bye!');

// print order
// 'Hi!'
// 'Bye!'
// 'Execute immediately.'