Promise Series | Question 3

@Yomesh Gupta
function processing() {
  return new Promise((resolve, reject) => {
    resolve(1);
    reject("Failed");
    resolve(2);
    console.log("After resolve/reject");
  });
}

function init() {
  processing()
    .then((v) => console.log(v + 1))
    .catch((err) => console.log(err));
}

init();
Option 1
2
After resolve/reject
Option 2
After resolve/reject
Option 3
After resolve/reject
2
Option 4
2