Question #112

Author: admin
tags: JavaScript  
Promise.resolve()
  .then(() => {
    console.log(1);
  });

Promise.reject()
  .catch(() => {
    console.log(2);
  });

new Promise(() => {
  console.log(3);
});

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