function pro(){
return new Promise(resolve=>{
resolve()
})
}
function a(){
return pro().then(res=>{
setTimeout(()=>{
console.log(1)
},2000)
})
}
function b(){
return pro().then(res=>{
console.log(2)
})
}
function c(){
return pro().then(res=>{
console.log(3)
})
}
a().then(b).then(c);
//2 3 1
Why isn"t the final result 1 / 2 / 3?
is it correct to return Promise in this way?