Event loop and call stack order of operations

后端 未结 0 572
抹茶落季
抹茶落季 2020-12-14 17:28

If the call stack is last on - first off then wouldn\'t this code output 3 2 1 ?

setTimeout(() => {
  console.log(\'1\');
}, 1000);

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题