DEV Community

Discussion on: 7 Reasons Why JavaScript Async/Await Is Better Than Plain Promises (Tutorial)

Collapse
 
gafi profile image
Mostafa Gaafar • Edited

I wouldn't call it better because this code does 2 things that I try to avoid generally:

  1. Mutation
  2. One-line if conditions

I try to make code easier to read and trace, even if it becomes a little more verbose