Sending JavaScript Http Requests with the fetch() API

preview_player
Показать описание
Want to send some background (Ajax) Http requests with JavaScript? Learn how to use the fetch() API for that!

THIS VIDEO IS PART OF A MINI-SERIES! Check out the other parts:

----------

• Follow @maxedapps and @academind_real on Twitter

See you in the videos!

----------

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

Nice one. Sometimes, especially when you are new to JS, it can quickly get confusing if there are three methods to do the same. So thank you for you effort and clarification!

waldemarenns
Автор

Completed XML one today, thanks for setting me up for another one hour, max rocks

Karan
Автор

This is so crazy!! I don't know why I can understand your video after napping!!

I swear I got confused awhile ago, and watched XMLHTtprequest like a drunkard... Then I decided to just let the info through and watch the fetch and nap coz im getting dizzy with the infos...

Now I can understand it after rewinding for a few times!! 😤😤😤 Thank you so much!! You are a blessing!

P.S not a native English Speaker 😭😭

matthewblasco
Автор

Looking forward to the next video in the series. Please also make a video on debounce operator in JavaScript

KunalMukherjee
Автор

Great video, you really explained the topic from top to down

noveltechmedia
Автор

Thank you, Max. Great video again.


I prefer axios for most cases, but it's great to have something like fetch! 😊✌🏼

geeksy
Автор

Excellent Max, done great job. Like the same way can you compare Authentications types ? It would be helpful to get clear picture about authentications methods.

kprabhanew
Автор

Excellent videos sir, I have a doubt why can’t we use JSON.parse(response) at 14:31

sriramadithya
Автор

Thanks for your videos. I learned a lot from your exercises. Greetings from Guatemala.

ronaldmorales
Автор

Thank You for Sharing!!! Very MUCH APPRECIATED!!! :) Have a Wonderfull Day!!! :) Enjoy ~ Peace :)

MontyKsycki
Автор

how do i use what was returned from fetch (body) outside the fetch block..?

taiwodamilola
Автор

may I know why not using promise in handle response ?

rullymartanto
Автор

What is the purpose of return statement?
return fetch(...)
return response.json() twice in our code....I mean what purpose do each one of them serve?

srikarkulakcherla
Автор

if return response.json() generates an error the .then statement will not execute. You need to add a .catch statement inside sendHttpRequest. Suppose you generate a 404 by typing the wrong url.

Grace
Автор

Why get request doesnt have catch handler?

NVsquare
Автор

Haha i learn with your udemy videos and casually i found your youtube channel

valeriofunk
Автор

Nice video love you max amazing feeling. Please make on series redux I am still waiting

DeepakGupta-hjdv
Автор

You are the best React explainer of all youtube ! Honnestly, what I understood better about react is what I leaned in your videos. Keep going your great work :)

camillegoze
Автор

I'm not sure how I feel about having to use two .then methods to actually get the data in a useable format.

KeganVanSickle
Автор

Mate, are you sure that it is the right way to implement fetch?

expukpuk