fetch('https://www.google.com')
.then(() => console.log(1));
Promise.resolve()
.then(() => console.log(2));
Promise.reject()
.catch(() => console.log(3));
Поиск
fetch('https://www.google.com')
.then(() => console.log(1));
Promise.resolve()
.then(() => console.log(2));
Promise.reject()
.catch(() => console.log(3));