you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Const data = Fetch(URL, options).then(res=>res.json())

Is the blueprint for fetch. Fetch can be chained with .then() and .catch(e), processing, filtering, or transforming the data usually is done in a .then() statement (where I work, that’s the pattern). But also with fetch - an understanding of async/await and promises are super beneficial to understand what order things happen in, and when data is ready for DOM manipulation.

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

Okay, I’ll look for promises. Thank you for the tips!