✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Node.js
Що виведе .catch()?
fetchUser(1)
.then(u => { throw new Error('bad'); })
.then(x => console.log('x', x))
.catch(e => console.log('caught', e.message));