//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
async function async1(){
console.log('async1 start')
await async2();
console.log("async1 end")
}
new Promise(function(resolve){
console.log('promise1')
resolve()
console.log('*******')
}).then(function(){
console.log("promise2")
})
async function async2(){
console.log('async2')
}
console.log("script start")
setTimeout(function(){
console.log("setTimeout")
},0)
async1()
console.log("script end")