Sending JavaScript Http Requests with the fetch() API

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 51

  • @matthewblasco4720
    @matthewblasco4720 2 года назад +1

    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 😭😭

  • @waldemarenns4874
    @waldemarenns4874 5 лет назад +4

    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!

  • @Karan60191
    @Karan60191 5 лет назад +6

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

    • @ericcameron760
      @ericcameron760 3 года назад

      I guess Im asking the wrong place but does anybody know of a tool to get back into an instagram account?
      I was dumb forgot the account password. I love any assistance you can offer me!

  • @KunalMukherjee3701
    @KunalMukherjee3701 5 лет назад +3

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

  • @geeksy2278
    @geeksy2278 5 лет назад +3

    Thank you, Max. Great video again.
    I prefer axios for most cases, but it's great to have something like fetch! 😊✌🏼

  • @noveltechmedia
    @noveltechmedia 4 года назад +1

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

  • @kprabhanew
    @kprabhanew 5 лет назад +1

    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.

  • @ronaldmorales6358
    @ronaldmorales6358 5 лет назад

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

    • @academind
      @academind  5 лет назад +1

      So happy to read that Ronald, thanks a lot! Greetings from Germany :)

  • @juancamiloq1
    @juancamiloq1 5 лет назад +1

    Awesome series

  • @MontyKsycki
    @MontyKsycki 4 года назад +1

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

  • @101appsCoZa
    @101appsCoZa 5 лет назад +2

    nice tutorial. Thanks!

  • @willyandrian5710
    @willyandrian5710 4 года назад

    As always, nice work sir

  • @RysioACF
    @RysioACF 5 лет назад

    Very helpful video. Thanks Max!!

  • @sriramadithya3044
    @sriramadithya3044 3 года назад +1

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

  • @camillegoze4923
    @camillegoze4923 5 лет назад

    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 :)

    • @academind
      @academind  5 лет назад

      Wow, that's just fantastic to read Camille, thank you so much!

  • @valeriofunk5000
    @valeriofunk5000 4 года назад

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

  • @taiwodamilola8636
    @taiwodamilola8636 4 года назад +1

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

  • @ayaneshsarkar7804
    @ayaneshsarkar7804 5 лет назад +1

    async function would be a good option

  • @farbodAprin
    @farbodAprin 3 года назад

    Thanks !

  • @TheInphinion
    @TheInphinion 4 года назад

    Great video, thank you so much.

    • @academind
      @academind  4 года назад

      Glad it was helpful!

  • @DSIRAGGIE
    @DSIRAGGIE Год назад

    Thaaaaank you!!!

  • @Qors1314
    @Qors1314 4 года назад

    lol i like how using normal XHR was somehow less confusing than fetch, the new cool kid on the block..think the way to go is to learn axios

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv 5 лет назад

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

  • @srikarkulakcherla2202
    @srikarkulakcherla2202 4 года назад

    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?

  • @KeganVanSickle
    @KeganVanSickle 4 года назад +1

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

    • @geralddarkobekoe
      @geralddarkobekoe 4 года назад +2

      Use async await,sooo much better

    • @Robin-uu4wx
      @Robin-uu4wx 4 года назад

      @@geralddarkobekoe but old fashioned

  • @27Grace
    @27Grace 3 года назад

    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.

  • @rullymartanto824
    @rullymartanto824 4 года назад

    may I know why not using promise in handle response ?

  • @NVsquare
    @NVsquare 5 лет назад

    Why get request doesnt have catch handler?

  • @frfancha
    @frfancha 4 года назад +2

    What a mess these promises are... I was very enthusiast after your great video on UseContext+UseReducer, but disappointed by the lack of clarity of this one. Seems to me that fetch API is simply defined in MDN, how can you make it so complex??

  • @expukpuk
    @expukpuk 4 года назад

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

  • @Alessandro_Russo
    @Alessandro_Russo 5 лет назад

    Internet is a better place with you!

    • @academind
      @academind  5 лет назад +1

      Thank you so much for these kind words Alessandro :)

  • @abdalhfeez4350
    @abdalhfeez4350 5 лет назад

    What your next udemy course? Thanks sir 💐🌹

    • @academind
      @academind  5 лет назад

      We'll share some news on that soon ;)

  • @upcom1ng116
    @upcom1ng116 2 года назад

    I am so confused at 4:04

  • @kumarshubham2571
    @kumarshubham2571 4 года назад

    It would be better to use async await method to save oneself from then callback hell

  • @greenshaheen6716
    @greenshaheen6716 5 лет назад

    Where is 1st video

    • @academind
      @academind  5 лет назад

      Here it is => academind.com/learn/javascript/xhr-fetch-axios-xmlhttprequest/

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 5 лет назад +1

    I still find axios better and the syntax, since it can be configured on an OOP manner

  • @yamillanz6398
    @yamillanz6398 5 лет назад

    fetch is better...