Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
157
rated 0 times [  159] [ 2]  / answers: 1 / hits: 12483  / 4 Years ago, tue, february 4, 2020, 12:00:00

Can someone please explain to me what the difference between a regular fetch and async await is? Im a beginner so I might get the concepts mixed up but love to get some information so that I can understand more.



Thank you!


More From » mongodb

 Answers
2

Fetch returns a Promise. This means fetch can either be used with promise chaining (using then), or with Async/Await. Either way fetch is returning the same result, but how it's handled is different. More on Async/Await vs then().


[#4842] Sunday, February 2, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
quentinaveryb

Total Points: 102
Total Questions: 100
Total Answers: 93

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
quentinaveryb questions
Thu, Aug 6, 20, 00:00, 4 Years ago
Fri, Jul 17, 20, 00:00, 4 Years ago
Mon, Aug 12, 19, 00:00, 5 Years ago
Thu, May 16, 19, 00:00, 5 Years ago
;