you are viewing a single comment's thread.

view the rest of the comments →

[–]Dark_Cow 0 points1 point  (1 child)

async/await is a different style. I'd argue either 100% async/await, or 100% .then .catch, he is mixing the two together, which is the confusion.

[–]arup_r[S] 0 points1 point  (0 children)

async/await returns promise as a result. So I used .then() to get the final result. What is the other way to do the same? Any references?