Question #117

Author: admin
tags: JavaScript  
new Promise(() => {
  throw new Error('problem');
})
  .then(
    () => { console.log(1); },
    () => { console.log(2); },
  )
  .catch(() => {
    console.log(3);
  });

console.log(4);
In what sequence will the numbers be output to the console?
1, 2
1, 2, 4
1, 2, 3, 4
1, 3, 4
2, 3, 4
2, 4
4, 1, 2
4, 1, 2, 3
4, 1, 3
4, 2
4, 2, 3
Rate the difficulty of the question:
easyhard