Question #119

Author: admin
tags: JavaScript  
new Promise((resolve) => {
  console.log(1);
  resolve();
})
  .then(() => {
    console.log(2);
    setTimeout(() => { console.log(3); });
  })
  .then(() => {
    console.log(4);
  });

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