Why all code runs in parallel and not in sequence?

后端 未结 0 404
失恋的感觉
失恋的感觉 2021-01-17 02:50

I have the following code:

   let x = new Promise((resolve,reject)=> {setTimeout(function(){console.log(\'Timeout\');resolve(1);},10000);console.log(\'Some         


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