Efficient ES6 async await with fetch

preview_player
Показать описание
This video explains how to effectively combine async await functions with fetch and include proper error handling.

Рекомендации по теме
Комментарии
Автор

Wow that's a really neat way of error handling that no other channels have explained before! Definitely learned something valuable here. Thanks!

mimishiba
Автор

Your Channel is like gold mining Steve, thank you for this fantastic explanation and the pure content you delivered, keep it up.

mohamedkhodary
Автор

Your videos are extremely well explained and contain quality content. However, your channel still doesn't have the number of views and followers it deserves to have. With this comment, first of all, I want to thank you for the knowledge you share with us and I also want to suggest an example of how to get more followers and viewers.
I recommend that you create a bigger project, a realistic project that young developers face. May be divided into several small sections and unite to a playlist, or record it in its entirety for a couple of hours. An example project would be a CRUD application with ECMAScript 6+ standard. I hope that you will do something like that for your viewers. Have a nice day :)

gospodarsile
Автор

Thank you !! Really well explained and calm to watch and straight to the point. I watched alot of your vids and they are all really well made.

MrSalFav
Автор

nice to see this channel getting big. i don't know a better teaching style

maspoetry
Автор

Thanks a lot Prof 😄Today I learnt something new

roshinimala
Автор

Today is a great day! It is the first day I have ever clicked the notification bell. haha

MoDeadYT
Автор

Fantastic content! (as always I learned new, useful techniques). Thanks for all your teaching.

quaternion-pi
Автор

Great.
One Question though.
In the End,
Why data.code && data.code == 400

RajveerSingh-ybzq
Автор

If want understand something I heve to follow your videos

giandomenicoriceputi
Автор

Greetings from Bulgaria. Thank you (perhaps 5ht time in different comments) for your time and efforts to put those so valuable tutorials.

One question please, if you have time - what about the regular try catch blocks inside the async funct. Are they not applicable here or this is just more appropriate (or should I say professional) way of coding ??

iliashterev
Автор

document.write("Thanks alot sir...these are awesome contents');

olubisidavid
Автор

Thank you for the video! Can you please say which microphone do you use?

tezzarida
Автор

Thanks Steve!
One question though; is it possible to return the data from function f in your example instead of logging it to console ? Trying to return "data" still returned a promised.
Is there a way around this ?

chikaodili
Автор

I need to extract a price from an cryptocurrency exchange url address. Using a fetch request and getting a json response (crypto symbol and price) how can I take advantage using async/await? I need only the price data. thanks

carbonio
Автор

What about using try catch block instead of crating handleErorr function?

dawidpomioto
Автор

Thanks, await makes more sense now. What if you just wrap everything inside the async function with try {}catch{} ? Would that work the same as the handleErr function ?

ironmanlifts
Автор

when we need to use asyn fetch vs a regular fetch??

misterl
Автор

why did you use two data.code inside if statement. im really new to this concept. please help me

evilwarrior