async function run() {
try {
await Promise.reject('Fail');
} catch (e) {
console.log(e);
return 'Success';
}
}
run().then(console.log);WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers async function run() {
try {
await Promise.reject('Fail');
} catch (e) {
console.log(e);
return 'Success';
}
}
run().then(console.log);