Question #114

Author: admin
tags: JavaScript  
new Promise(() => {
  console.log(1);
})
  .then(() => {
    console.log(2);
    throw new Error('problem');
  })
  .then(() => {
    console.log(3);
  })
  .catch(() => {
    console.log(4);
  });
In what sequence will the numbers be output to the console?
1
1, 2, 3
1, 2, 3, 4
1, 2, 4
1, 4
4
The executor function does not call the resolve function (its first argument), so the callback passed to then method is not invoked.
Rate the difficulty of the question:
easyhard