部门:基础架构,难度一般
手写:
八股&项目:
事件循环题目:
Console.log(‘script start’);
setTimeout(()=>{
console.log(‘setTimeout’);
});
New Promise((resolve, reject)=>{
Console.log(‘promise’);
Resolve();
}).then(function(){
Console.log(‘promise1’);
}).then(function(){
Console.log(‘promise2’);
});
Console.log(‘script end’);