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