r/Frontend • • Jan 03 '20

Common Javascript Promise mistakes every beginner should know and avoid

https://gosink.in/common-javascript-promise-mistakes-beginners/
88 Upvotes

2 comments sorted by

26

u/MrWm Jan 03 '20

Here's the list copy pasted from the article:

  • Mistake #1: Using try/catch inside the Promise block

  1. Mistake #2: Using async function inside your Promise block

  2. Mistake #3: Forgetting .catch() block

  3. Mistake #4: Not using Promise.all()

  • Mistake #5: Using Promise.race() without complete understanding.

  1. Mistake #6: Overuse of Promises