logo

Crowdly

Browser

Add to Chrome

Node.js Що виведе цей код? const p1 = Promise.resolve('A'); const p2 = Promise.r...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Node.js

Що виведе цей код?

const p1 = Promise.resolve('A');

const p2 = Promise.reject(new Error('fail'));

const p3 = Promise.resolve('C');

Promise.all([p1, p2, p3])

.then(r => console.log('ok', r))

.catch(e => console.log('err', e.message));

100%
0%
0%
0%
0%
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