235 B
235 B
Promise: then versus catch
Are these code fragments equal? In other words, do they behave the same way in any circumstances, for any handler functions?
promise.then(f1, f2);
Versus;
promise.then(f1).catch(f2);