Learn Fetch API In 6 Minutes

Опубликовано: 15 Октябрь 2019
на канале: Web Dev Simplified
1,349,434
31k

Accessing data from an API is one of the most common things you will do in web development, and the way to access APIs is with fetch. Fetch is function built into JavaScript that allows you to query any URL/API to get back data. The most important part is that fetch is asynchronous so it will run in the background and let you know when it finishes using promises. In this video I will show you exactly how to use fetch, and all of the common mistakes people make using fetch so you can get up and running in just six minutes.


📚 Materials/References:

Fetch Article: https://blog.webdevsimplified.com/202...
Learn Promises In 10 Minutes Video:    • JavaScript Promises In 10 Minutes  
Async Await Tutorial:    • JavaScript Async Await  


🧠 Concepts Covered:

What the fetch API is
How to use the fetch API
How to handle API response errors
How to use JSON data with fetch


🌎 Find Me Here:

My Courses: https://courses.webdevsimplified.com
Patreon:   / webdevsimplified  
Twitter:   / devsimplified  
Discord:   / discord  
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#Fetch #WDS #JavaScript