Promise.resolve()
.then( value => {
console.log(0);
return Promise.resolve({
then() {
console.log(1);
}
})
})
.then( value => {
return Promise.resolve({
then() {
console.log(2);
}
})
})
.catch(()=>{
console.log("not yet");
})