Fetch API in JavaScript for AJAX Developers

preview_player
Показать описание
In today's video I'll be going over the Fetch API in JavaScript which is a modern alternative to AJAX (or jQuery AJAX) and allows you to make HTTP requests.

This video is intended to help people who were like me, a little hesitant to use Fetch due to the usage of promises.

Join this channel to get access to perks:

For your reference, check this out:

💜 Join my Discord Server:

Support me on Patreon:

Follow me on Twitter:
@dcodeyt

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

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

Brother! You maded it so simple that even a kid in prmary school will understand. Thanks

albertalbaba
Автор

Something I always wanted to know
Thanks!

nikhilmwarrier
Автор

Your tutorials are help ful.
Love from hargiesa somaliland 💕🙏

justnow
Автор

Now isnt using ajax allows you to load information without refreshing?

AlThePal
Автор

Thank you! I have been trying to understand the difference and you explained it very well.

zainabal
Автор

Thanks! very clear and so beginner friendly

pipersaratoga
Автор

i am working on a uni project right now in php and i need to use ajax in some parts, can i use fetch api with database?

ghassendhaoui
Автор

For me, I understood fetch better than ajax but they don't want me to use fetch! They want me to stick to ajax apparently as ajax will most likely to work all the time but where as fetch won't always be supported due it being newer... 😫

KeepLearing
Автор

Nice, but how to use timeout, f.i. if server does not response for >10s ?

Lymphater
Автор

pull data from an external file on desktop with fetch api?

nurullahanas
Автор

Thanks!

Could you please include the code under your videos pls? (I mean via a link obviously)

YagamiL
Автор

One annoying part about native fetch method, it cant handle file upload progress.

rendykurniawan
Автор

So I understand why there would be an await before a fetch call, but is it really necessary to put an await before the "response.json()"? Wouldn't that function call be instantaneous since it's not getting anything outside of JS? Or do you just put an await before every function call of a promise?

leviuzodike
Автор

Really thanks! This was exactly what I wanted to learn. One more question, Which of the two last options is the best? (fetch.then or fetch async/await).

amirrezaamini
Автор

Man, I hate ajax. This truly is a game-changer.

atmanvisual
Автор

What local server you use for this tutorial?

vladosononame
Автор

hello reallyawesome explanation ; i get wait and then relation much clearer now and compared to callback ajax; i will keep practicing; i want to maention then these catch error functions i dont like cuz all they do is bring you to the line where the catch code was written not tothe actual line error; so i leave that catch error out so the defaut web console erro bring me to the actial error line; unless you know how to actully display the line error : thxz Lisa

pjmclenon
Автор

thnx this help a log even its already 2023 haha

johnthomascaballero
join shbcf.ru