Promises & then/catch

What value will be logged?
Promise.resolve(1)
  .then(x => x + 1)
  .then(x => Promise.resolve(x + 1))
  .then(x => { throw new Error('Failed'); })
  .catch(err => 0)
  .then(x => x + 1)
  .then(console.log);
Next Question (18/21)