What can be done to improve the situation?
Promise.resolve(1) .then(x => console.log(1)) .catch(x => console.log(2)) .then(x => console.log(3)) Promise.reject(2) .then(x => console.log(4)) .catch(x => console.log(6)) .then(x => console.log(7)) result is "1 6 3 7", but if i add another then() before catch with console.log(6) result will be 1…