let bbb = Promise.resolve();
bbb.then(none => {
throw "ошибк2";
})
bbb.catch(err => {
console.log(err)
});
Promise.resolve()
.then(none => {
throw "ошибк2";
})
.catch(err => {
console.log(err)
});
let bbb = Promise.resolve();
var aaa = bbb.then(none => {
throw "ошибк2";
})
aaa.catch(err => {
console.log(err)
});