do-thenRealise sync or async tasks as promises, resolve to do the next step or reject and catch an error.promisedothendo-thenresolverejectjavascript1.0.1 • Published 8 years ago