1.1: fetch() - Working With Data & APIs in JavaScript

  Рет қаралды 449,501

The Coding Train

The Coding Train

5 жыл бұрын

Welcome to Working with Data and APIs in Javascript!
This course is for aspiring developers who want to learn how to work with data in web applications. How do you retrieve, collect, and store data? The course will be taught through a series of creating three data projects. This is the first video of the series!
1.1 This video is client-side only and covers the web fetch() API, loading image data and focusing on handling asynchronous events with Promises (async / await),
🎥 NEXT LESSON: • 1.2 Tabular Data - Wor...
🎥 FULL COURSE: • Working with Data and ...
💻github.com/CodingTrain/Intro-...
🔗developer.mozilla.org/en-US/d...
🚂 Website: thecodingtrain.com/
💖 Patreon: / codingtrain
🛒 Store: www.designbyhumans.com/shop/c...
📚 Books: www.amazon.com/shop/thecoding...
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...

Пікірлер: 444
@erichreinholtz
@erichreinholtz 4 жыл бұрын
dude ur like the only person in this entire bloody internet who actually explained this properly
@wesleychigbu7335
@wesleychigbu7335 9 күн бұрын
Legendary comment😭😭
@jrichalot
@jrichalot 4 жыл бұрын
As a teacher, I can say this is mindblowingly brilliant! Oh man the effort that gets in producing a seamless and well constructed lesson like this is enormous. A massive thank you from me.
@beron_the_colossus
@beron_the_colossus 5 жыл бұрын
Ahh, it's finally here! Thank you Mr. Shiffman for everything that you do!
@JoSh-yu6jt
@JoSh-yu6jt 4 жыл бұрын
You are the god of programming tutorials. Your excitement and joy is contagious. If there was a person who could give birth to webDevs it's you. 😁👍🏻
@brikimbran
@brikimbran 5 жыл бұрын
Due to your pavlovian training with the bell, I now smile every time I your videos start Shiff. Excellent as always.
@sankai91
@sankai91 5 жыл бұрын
if only you'd have started this series about 4 years ago, it would have made my life back then so much easier! Finally got to understand it properly :)
@user-nl2or1gt6x
@user-nl2or1gt6x 10 күн бұрын
Such a great teacher, not even fully into the series and I can already tell I'm in good hands 👍
@christopherburke7042
@christopherburke7042 4 жыл бұрын
I am massively appreciative for everything that you are bringing to the table in this course, as well as by way of all the other resources you provide. God bless you man.
@onurbamaro
@onurbamaro 3 жыл бұрын
Wow! Amazing the way you explain how the code actually works behind the scene instead of just showing it. That is real teaching! Respect from Brazil!
@KanagawaMarcos
@KanagawaMarcos 5 жыл бұрын
One of the best coding channels out there. Amazing video Shiffman, thank you for it!
@francoisbouchet9907
@francoisbouchet9907 3 жыл бұрын
i'm sorry, but the n00b in me has to say it loud... so here comes the CAPS: "IT'S BEEN DAAAAAYZ I AM STRUGGLING ON GETTING A SIMPLE API CALL TO JUST WORK AND LITERALLY NOBODY BUT CODING TRAIN TOOK THE TIME TO EXPLAIN & DEMONSTRATE IT IN A PRACTICAL MANNER (..and with such enthusiasm!) ! I FINALLY UNDERSTAND HOW IT WORKS! ALERT("THANK YOU SO SO MUCH!!
@thomaswilliams495
@thomaswilliams495 4 жыл бұрын
I absolutely love your tutorials. I'm astounded by how quickly you cover the information, jumping into code, error fixing, and rambling over so much territory with joy and humor. Math homework has never been this much fun!
@temzeks
@temzeks 3 жыл бұрын
i always head straight to your videos on any topics i learn, because of the way you explain and energize me. I am literally happy while watching your vids!
@jamesa.
@jamesa. 5 жыл бұрын
Just in case you confused like I was- "rainbow.jpg" is a file on his computer, so you just navigate to an image on your computer too.
@HossamKhalaf-sr1oo
@HossamKhalaf-sr1oo 4 жыл бұрын
Thank you!!!
@hkar19
@hkar19 4 жыл бұрын
the thing is for me the fetch API cannot load. i just did what was written by Dan. the console said: URL scheme must be "http" or "https" for CORS request.
@hkar19
@hkar19 4 жыл бұрын
oh ok it is done when i started the live server. i forgot that one
@laalaajonsen
@laalaajonsen 4 жыл бұрын
but where do we define the path for that file?
@medilies
@medilies 4 жыл бұрын
@@laalaajonsen "rainbow.jpeg" is a relative path Liveserver does load all the workspace (project folder ) on the network! So suppose that that the project folder is: Project ( index.html, img[ rainbow.jpeg ] ). Fetch with absolute path is like : "localhost:5500/img/rainbow.jpeg" Or with relative path is like: "Img/rainbow.jpeg"
@Tads552
@Tads552 4 жыл бұрын
Im showing this playlist to EVERYBODY! Congrats on the effort because this is helping me out a lot!
@warkentien2
@warkentien2 2 жыл бұрын
I finally understood fetch, in a way that I won't forget in 30 minutes. Great video!
@Xerxes17
@Xerxes17 3 жыл бұрын
Bro, you are a lifesaver, thank you so much for the well delivered tutorial. You've provided the full context, focused on the function clearly, and chunked up the steps involved in an understandable and logical manner, which is really important for true comprehension.
@pablovillaverde679
@pablovillaverde679 3 жыл бұрын
I am finally able and happy to report that I was able to write code to fetch an array of images and put them in a web page. I was also succesful to fetch the text in a .txt file. I have a good understanding of HTML and CSS and a few weeks of learning Javascript, so my next goal is to construct a web page to display analytic and historic information of Formula 1. There are a couple of API's available that I can use, so wish me luck!
@amastou4634
@amastou4634 4 жыл бұрын
Amazing ! Just discovered this channel because I was looking for how to use fetch and async, I understood all that stuff in this video. Thanks !
@josepharcher9750
@josepharcher9750 5 жыл бұрын
You are so good at explaining everything! Thank you for the video :)
@landtechjobs
@landtechjobs 2 жыл бұрын
This is the type of content that pushes humanity forward. Thank you for empowering others.
@unclegood
@unclegood 3 жыл бұрын
just came across your youtube videos, you have the most fun and vibrant coding lessons, and a teacher all children should have!
@softmerit25
@softmerit25 2 жыл бұрын
Seriously man. This is the best tutorial training I have ever seen in KZbin so far. I'd love the way you teach, explain and illustrate. You're really doing great stuff. Thanks a lot.
@colindante5164
@colindante5164 2 жыл бұрын
Would you happen to know what does 'img elt' means at the 8:55 mark ?? I've never heard of " ELT " before. Thanks a lot.
@omkarpabe7780
@omkarpabe7780 2 жыл бұрын
where to get the rainbow file from ? where is this server please I am new to this
@colindante5164
@colindante5164 2 жыл бұрын
@@omkarpabe7780 it could be any file off the internet or stored locally. In this case he's using an image off the internet that has the .jpg extension.
@jorge88824
@jorge88824 4 жыл бұрын
Basic concepts explained in an amazing way. Thank you once again for the great content and way of presenting it to the youtubers. You boosted my knowledge more than a whole semester at uni. Stay safe.
@nate1988
@nate1988 2 жыл бұрын
This is the first video of yours I've stumbled on and it's the best yet to break down fetch() with the added bonus of await/async. I'm a self-taught adult student and it's hard finding a teacher that clicks. Subscribed and looking forward to diving into the rest of your videos.
@whydoyouneedmyname165
@whydoyouneedmyname165 5 жыл бұрын
even adds async/await in first video this guy is the internets end boss. good work.
@123saltgaming6
@123saltgaming6 2 жыл бұрын
The best possible explanation that is available on KZbin 👍👍
@lukask6066
@lukask6066 5 жыл бұрын
The first time I really understand promises! LIKE!
@nilsondelaossa4052
@nilsondelaossa4052 6 ай бұрын
You are my code hero. Nobody explains so easily like you. Choo choo !
@lollilolli4582
@lollilolli4582 2 жыл бұрын
I like the happy energy you deliver so coding is less depressing :) thank you !
@bernardsamapoh3619
@bernardsamapoh3619 Жыл бұрын
Really like your style of teaching. You simplify concepts to the basic.
@KennieDevCamp
@KennieDevCamp 4 жыл бұрын
Your tutorials are super duper awesome Mr. Shiffman. I'm learning and loving your contents. Keep it up
@axeljorgensen3438
@axeljorgensen3438 3 жыл бұрын
After like 5 other walkthroughs that left me feeling stupid I'm realizing how poorly almost everyone else explains this stuff. Props to you for being a good teacher. Thank you.
@arindam-karmakar
@arindam-karmakar 2 жыл бұрын
WHY DIDN'T I FOUND YOUR CHANNEL EARLIER! SUBSCRIBED! Thanks for the amazing contents!
@santiagocuadra1121
@santiagocuadra1121 Жыл бұрын
i'm glad to know english, just to say: thank you for all effort put on those videos.
@brysontai5107
@brysontai5107 2 жыл бұрын
As I am new in Javascript, but this guy could deliver precise explanation about it. Subscribe is a must !
@JorgeArias
@JorgeArias 5 жыл бұрын
This content and tutos are just, GOLD!
@art0van0derlay
@art0van0derlay 21 күн бұрын
What a fantastic teacher! Keep up the good work
@Savefamiliesfromgaza
@Savefamiliesfromgaza Жыл бұрын
I like how he made everything fun, even a person with no programming background can understand his explanation... I wish they taught me this way from the start
@rotrose7531
@rotrose7531 5 жыл бұрын
Thank you, this concept is not easy to understand, but you explains it so clear that everybody can understand it now. Thank you for your effort and sharing.
@tunafish9112
@tunafish9112 5 жыл бұрын
I love your videos dude, can't wait to go through this series!
@pysco11
@pysco11 Жыл бұрын
This is soo informative and well done! I love your enthusiastic voice tone. I can't thank you enough. 👍🏽👍🏽👍🏽👍🏽👍🏽
@PotatoLover1212
@PotatoLover1212 5 жыл бұрын
I love you. I have been searching for an easy way to retrieve an image from API and everyone was converting it into a base64 text. This si much easier, thanks !
@alperenozkan
@alperenozkan 5 жыл бұрын
Thanks 🙏 I really like your videos , your energy and the way you explain in front of the whiteboard. I feel like exactly in the class 💫👌
@iamsachin619
@iamsachin619 3 жыл бұрын
Man what did we do to deserve a teacher like you❤️
@hiryuimajin
@hiryuimajin 5 жыл бұрын
I enjoy your videos so much. This is so related to what im building and the way you explain things are very good. You enunciate and even the tempo is a bit faster its not that hard to follow. I appreciate you! 😘
@devadharshini1122
@devadharshini1122 3 жыл бұрын
i have never enjoyed while learning something. You are soooo good in explaining stuffs.
@nirajdeshmukh7514
@nirajdeshmukh7514 Жыл бұрын
Wow.. this tutorial is perfect to context which gives real world example. Thank you very much.
@AlThePal78
@AlThePal78 Жыл бұрын
You are my favorite teacher because you are so fun to watch so happy and animated thank you so much :)
@maltemichels
@maltemichels 4 жыл бұрын
You're a magician. You really found your vocation!
@hcgreier6037
@hcgreier6037 Жыл бұрын
A massive thanks from here for your instructive lessons and your effort you're putting in this! Bow!
@emarroqu100
@emarroqu100 3 жыл бұрын
This is a great tutorial - thank you. I admire your teaching style.
@movieclips3268
@movieclips3268 4 жыл бұрын
one of the best video to explain js in the most simple way.
@kevintlu
@kevintlu 5 жыл бұрын
Finally Dan has done this! Thanks ! Keep it up!!
@futincrivel
@futincrivel Жыл бұрын
This is a BRILLIANT lesson! Its very good. Thank you
@ismailahmad9597
@ismailahmad9597 2 жыл бұрын
This stuff wasn't really setting right with me before. You helped me figure it click for me but that wasn't the best part of the video. You make it fun. Life doesn't have to be boring, why not make it fun? Thanks a ton!
@cloudstrife6399
@cloudstrife6399 4 жыл бұрын
You're a master! Thanks for sharing you're knowledge!
@PavelPetrasuk
@PavelPetrasuk 4 жыл бұрын
You are the best teacher ever! Thank you so much for your videos! ❤️
@drophy
@drophy 5 жыл бұрын
Sounds interesting! Really looking forward the next video!
@andreask_me2683
@andreask_me2683 3 жыл бұрын
probably one of the best programming teachers.
@AlphastepMusic
@AlphastepMusic Жыл бұрын
I've been looking for this for a very long time!
@weehagaming1513
@weehagaming1513 3 жыл бұрын
Finally some high quality tutorial, thanks dude
@thedonsky5092
@thedonsky5092 3 жыл бұрын
This guy is awesome, Wish there was more time in the day to watch all his videos
@hustler212
@hustler212 9 ай бұрын
I feel happy while studying from you.
@MrPipero96
@MrPipero96 4 жыл бұрын
Exceptionally explained! Thanks
@JeanLuemusic
@JeanLuemusic 2 жыл бұрын
I feel like I am there in the class. I get him and what he is saying so well. Learning just got easier for me.
@onedimensionalchess4373
@onedimensionalchess4373 5 жыл бұрын
Very excited for this series.
@rankostevanovich2496
@rankostevanovich2496 4 жыл бұрын
The best teacher! Thanks for your awesome work
@nikolebianchini
@nikolebianchini 3 жыл бұрын
I just love how he reminds me of my 6th grade teacher, like he literally has that same enthusiasm! Makes me really want to learn JS. Such an awesome job at keeping your viewers attention. I kinda wander off when learning on my own lol
@vahidsediqi5638
@vahidsediqi5638 2 жыл бұрын
The best content and teaching method i ever seen. Thanks
@tiffanygibbel3767
@tiffanygibbel3767 Жыл бұрын
You and your channel are *brilliant*
@bgb76
@bgb76 3 жыл бұрын
the magic of FETCH-ing starts from 11:18 ASYNC & AWAIT --- awesome
@camilovega4914
@camilovega4914 2 жыл бұрын
You are a great teacher! Many thanks for the lesson
@jordanlong5354
@jordanlong5354 4 жыл бұрын
Working with fetch and .then in my bootcamp. This helped me tremendously thank you so much
@QuarkGluonPlasma137
@QuarkGluonPlasma137 Жыл бұрын
Dude you are amazing!! Fantastic video!
@Igoreus82
@Igoreus82 2 жыл бұрын
You are an amazing teacher! Thanks so much!
@rotrose7531
@rotrose7531 4 жыл бұрын
Thank you for these incredible stuff, they are the very thing I want.
@pliniojr95
@pliniojr95 2 жыл бұрын
Thank you for the video! You made it easy to understand. I will try these exercises you suggested at the end of the video.
@cass_666
@cass_666 3 жыл бұрын
Was coding along and I too kept on mispelling response too! Ahhh! Great tutorial. I enjoyed the challenge at the end which pushed me to make sure I understand how this all works! Looking forward to the rest!
@matissjudins6272
@matissjudins6272 2 жыл бұрын
ur a god, beem strugling with fetch for a week, its easy to understand u
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Glad to hear!
@trashmoneyyt
@trashmoneyyt 4 жыл бұрын
To be honest I'm amazed I was able to do it! I sort of followed along while you were explaining the await and blob concepts but I actually managed to get three rainbow images to display plus the text. Woo!
@maksim7683
@maksim7683 4 жыл бұрын
I just want to say, you are the best.
@doremon2611
@doremon2611 4 жыл бұрын
Thanks man, keep spreading the happiness of coding!
@englishwitharash
@englishwitharash 2 ай бұрын
you did really well. You said what we needed exactly.
@ibrahimagueye8256
@ibrahimagueye8256 5 жыл бұрын
You're awesome Dan keep making awesome tutos!
@jAMES-xy6wh
@jAMES-xy6wh 4 жыл бұрын
That was awesome! Appreciate you.
@paulosilva-dm1qb
@paulosilva-dm1qb 4 жыл бұрын
U r a genius and teaches with heart. What else can we need?...Alll happiness
@AlversonLayne
@AlversonLayne 4 жыл бұрын
Tremendously helpful. Thanks for your work!!!
@lopa8519
@lopa8519 5 жыл бұрын
This was really helpful. Thanks a lot Dan.
@LesDunaway
@LesDunaway 4 жыл бұрын
Good teaching! Good enthusiasm!
@samahgad241
@samahgad241 2 жыл бұрын
Very interesting,learning with you.🌷
@kidstube3239
@kidstube3239 4 жыл бұрын
This is a really useful video. Neatly explained.
@BloodyScythe666
@BloodyScythe666 5 жыл бұрын
a nice and easy way to learn newer js. great work
@JimKernix
@JimKernix Жыл бұрын
Excellent - thanks! Just subscribed and will be watching some more videos related to fetch and async await.
@marwabarakat2551
@marwabarakat2551 5 ай бұрын
Thanks a lot for your efforts, you really make it seems to easy
@ashharkausar413
@ashharkausar413 3 жыл бұрын
Superb. You made it so easy to understand!
@youssefmuhamad3213
@youssefmuhamad3213 5 жыл бұрын
I was waiting for this
@abazur7742
@abazur7742 5 жыл бұрын
Im hyped for next vids
@PetrChlada
@PetrChlada 2 жыл бұрын
Nice explanation! Thank you
@marianamena3863
@marianamena3863 Жыл бұрын
You are a treasure, thank you!
1.2 Tabular Data - Working With Data & APIs in JavaScript
17:15
The Coding Train
Рет қаралды 210 М.
1.4: JSON - Working with Data and APIs in JavaScript
16:22
The Coding Train
Рет қаралды 640 М.
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 34 МЛН
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 2,9 МЛН
2.1 Server-side with Node.js - Working with Data and APIs in JavaScript
18:17
2.2 Geolocation Web API - Working with Data and APIs in JavaScript
15:04
The Coding Train
Рет қаралды 199 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
2.4 Saving to a Database - Working with Data and APIs in JavaScript
11:18
The Coding Train
Рет қаралды 224 М.
Ten Steps to Mastering the Fetch API
2:19:52
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 40 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 753 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
1.3: Graphing with Chart.js - Working With Data & APIs in JavaScript
19:46
Fastest way to become a Web Developer in 2024
9:47
Sahil & Sarra
Рет қаралды 518 М.
2.5 Database Query - Working with Data and APIs in JavaScript
13:05
The Coding Train
Рет қаралды 132 М.