re: 7 Reasons Why JavaScript Async/Await Is Better Than Plain Promises (Tutorial) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great Post! Wouldn't it be better to write the Code in example 3 like this?
 

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

code of conduct - report abuse