Что выведет код и почему.
Promise.reject('a')
.then(p=>p+'1',p=>p+'2')
.catch(p=>p+'b')
.catch(p=>p+'c')
.then(p=>p+'d1')
.then('d2')
.then(p=>p+'d3')
.finally(p=>p+'e')
.then(p=>console.log(p)) // ?Что выведет код и почему.
Promise.reject('a')
.then(p=>p+'1',p=>p+'2')
.catch(p=>p+'b')
.catch(p=>p+'c')
.then(p=>p+'d1')
.then('d2')
.then(p=>p+'d3')
.finally(p=>p+'e')
.then(p=>console.log(p)) // ?