Learn How To Get Data From An API and Handle That Data!

preview_player
Показать описание
Learn how you can get data from a server and how you can handle that data once it has been returned. Learn the fetch method, async/await methods, then and catch methods, and how promises work.

Learn Programming Here

Socials

Contact

SEO
#software #webdevelopment #programming #webdevelopment #code #coding #javascript #softwaredeveloper #softwaredevelopment #tutorial

Chapters
0:00 Intro
0:27 What is an API?
0:40 What is JSON?
0:55 The SWAPI API
1:54 Making a Fetch Request!
2:52 The Promise and it's 3 States!
3:35 Why The Promises?
4:25 The .then() method
7:06 Converting a data stream to readable JSON
8:06 Chaining .then() methods
9:21 A detailed analysis of the whole process
11:12 The .catch method (UGHHH!! Error handling 😢)
12:35 Simulating an ERROR!
13:15 We got a fulfilled status on a bad request?
13:39 Checking The Request For Errors
15:32 The rejected status is harder to get than you think
18:05 Async/Await
23:04 Handling Errors inside of Async Functions
23:57 Getting data out of the async function? (You Can't!)
25:30 The second argument to the .then() method
28:45 Outro 👋
Рекомендации по теме
Комментарии
Автор

Hello Kyland. First time on your channel. I very like your work. Thanks for sharing, keep going mon ami.

azakimbow
Автор

Thank you Kyland for the very informative tutorial on JS!

GaryChike
Автор

Hi Kyland, there is a typo on your portfolio website, it says "Front end Deveoper"

madhavgopakumar
Автор

You confuse 'request' and 'response' terms

AcediaUA
join shbcf.ru