Level 19

finally passes it on

A .finally between a resolved promise and a .then.

Promise.resolve('ok')  .finally(() => console.log('cleanup'))  .then((v) => console.log('got ' + v));

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…