Skip to content

re: What does Javascript Promise us for 2020? VIEW POST


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.

code of conduct - report abuse