logo

Crowdly

Browser

Add to Chrome

Node.js Що виведе .catch() ? fetchUser(1) .then(u => { throw new Error('bad')...

✅ 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));

More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome