Question #55

Author: admin
tags: JavaScript  
new Promise((resolve) => {
  console.log(1);
  resolve();
})
  .then(() => {
    console.log(2);
  })
  .catch(() => {
    console.log(3);
  })
  .then(() => {
    console.log(4);
  });
What will the console output be?
1
1, 2
1, 2, 3
1, 2, 3, 4
1, 2, 4
1, 2, 4, 3
This code cannot be executed, there is a syntax error in it.
Rate the difficulty of the question:
easyhard