Skip to content

What does Javascript Promise us for 2020?

Gábor Soós on November 03, 2019

Promises are available since ES2015 to simplify the handling of asynchronous operations. Promises have two well-known combinators: all and race. Bo... [Read Full]
markdown guide

I don't really understand what is the use of try since throwing in a promise was already handled:

new Promise((resolve) => throw new Error('err'));

Would reject like any other promise. I do like the other ones though ;p


At entry scripts where you start synchronous, it can help.


What does Javascript Promise us for 2020?

Ha! I see what you did there. ♥

code of conduct - report abuse