the murmurous sea

async vs. fetch 본문

#dev/undone Q

async vs. fetch

lunacer 2020. 6. 25. 12:48

https://dev.to/shoupn/javascript-fetch-api-and-using-asyncawait-47mp

 

JavaScript Fetch API and using Async/Await

 

dev.to

: when using fetch, it could be chaining of .then()'s and this can lead into what is often referred to as callback hell, or nested callbacks. 

: But with Async/Await can have better readability.

 

https://hackernoon.com/6-reasons-why-javascripts-async-await-blows-promises-away-tutorial-c7ec10518dd9

 

6 Reasons Why JavaScript Async/Await Blows Promises Away (Tutorial) | Hacker Noon

👉 This article has been updated and republished, read the latest version here

hackernoon.com

: 1. Concise and clean

2. Error handling

3. Conditionals

4. Intermediate values

5. Error stacks

6. Debugging

'#dev > undone Q' 카테고리의 다른 글

flex vs. grid  (0) 2020.07.17
RegExp  (0) 2020.06.24
JS ES6: Promise vs. Async await  (0) 2020.06.15
JS ES5: strict / non-strict(sloppy) mode  (0) 2020.06.10
JS OOP:  (0) 2020.06.09
Comments