Promise waterfall
JavaScript promise is very useful, but if you have unpredictable tasks that depend on the previous task or can't run parallel, this syntax can be helpful.
Waterfall syntax
Start by prepare a promise function called run
const run = () => {
return n...
ninolin.hashnode.dev1 min read