How to Handle API in javascript

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

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

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

    Full course is FREE and will be available here
    courses.learncodeonline.in/learn/Complete-Javascript-course

    • @vamsikrish650
      @vamsikrish650 8 месяцев назад

      bro i am unable to login to your website

  • @oliverjames8080
    @oliverjames8080 3 года назад +2

    When I tried to execute the fetch in the google console I got "failed to load recourse: net;;ERR_FAILED"
    does anyone know how I can fix this

  • @SHUBHAMGUPTA-br2jx
    @SHUBHAMGUPTA-br2jx 4 года назад +5

    Please upload CORS video .
    And thank you for wonderful js course.

  • @bhavleensingh6929
    @bhavleensingh6929 4 года назад +8

    who remember the typo of *AUTHETICATED* instead of *AUTHENTICATED* :)

  • @hetalbaghel4060
    @hetalbaghel4060 3 года назад +3

    Whenever I am pasting code in the console of chrome its showing
    [[PromiseState]]: "rejected"
    What should i do

  • @Teachjarunjoshi
    @Teachjarunjoshi 4 года назад +9

    Please upload CORS video .
    And thank you for wonderful js course.

  • @vickydhanwani3848
    @vickydhanwani3848 4 года назад +3

    Please a video for how to handle CORS error. It took me aa lot of time to understand CORS and handled it using a third party package in ExpressJS.

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

    Video on CORS Please!

  • @chiragsaini2314
    @chiragsaini2314 3 года назад +4

    to all those who want to run this code on node , install node-fetch (e.g => npm install node-fetch) and change fetch to const fetch = require("node-fetch") , rest continue with the code , or you can also use axios but the code will vary.

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

      Thanks for info.

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

      @@jsjuris8922 np

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

      it is showing error in console as well promise is rejected .any solution ?

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

      @@mansijain8847 i would need a little bit more information regarding it , are you on discord?

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

      thanks it is really helpful

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

    I love this video. API rocks! you really did justice to it. You always have the best video quality on RUclips. Thanks Sir!

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt 3 года назад +2

    Thank you so much sir,
    this is the best Javascript course, your teaching is awesome

  • @Mehedihasan-rahat
    @Mehedihasan-rahat 2 года назад

    One issue is to know that when the response data into then() is converted into json() like respond.json() then it is told that the respond data is converted into json format... but then why it does not converted again with JSON.parse() to get JS formatted object...???? how it automatically converted only using json() method????

  • @Mehedihasan-rahat
    @Mehedihasan-rahat 2 года назад

    Dear Hitesh Bhai plz provide the lecture about Facebook, RUclips, and Google map API ... Love from Bangladesh

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

    Want a video on CORS. Please

  • @TS-xo3ed
    @TS-xo3ed 4 года назад +4

    Whoa! Who else Coffee with JavaScript !😍

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

      Hey, why you learn java with Javascript

    • @TS-xo3ed
      @TS-xo3ed 4 года назад

      @@AbhituklVerse Frontend 😍 plus Backend of web

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

    Sir, Video on cors please

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

    Please make a video about cors sir

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

    Sir please make video on cors

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

    Hi sir
    I got type error when I run this code on Chrome browser's console. Please tell me how can I handle this ?

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

    in browser promise is getting rejected with error- new-tab-page/:1 Uncaught (in promise) TypeError: Failed to fetch. No response coming Can someone help?

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

      yes I got the same problem sir please reply

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

    When I am running same code on we browser it gives me error😭😭

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

    Sir please update this course of javascript on LCO..

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

    I'm new to api handling .I think i learnt good enough stuff from this video.

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

    How we don't have options to use fetch WEB API inside node and simulate process using node app.js?
    We can do npm i node-fetch
    Then:
    const fetch = require("node-fetch")
    Then:
    fetch(url)
    .then()
    .then()

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

    Sir please update this course of javascript on LCO..

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

    Thank you so much for this amazing JavaScript! because of the way you are teaching, day by day, my interest on JavaScript increases a lot and doing good by watching your series along with the mdn doc. by practising dialy.. grateful to you Hitesh sir

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

    Sir make a detailed video on CORS

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

    Please make a video on CORS, Thanks!

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

    Rajnikant is basically Chuck Norris of India😅

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

    Sir add es6 course in this playlist.. Plz 🙏

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

    4:49 i run it in node environment by installing node modules

  • @Mehedihasan-rahat
    @Mehedihasan-rahat 2 года назад

    Dear Hitesh Bhai plz provide the lecture about Facebook, RUclips, and Google map API ... Love from Bangladesh

  • @raspberry-digital3886
    @raspberry-digital3886 2 года назад

    Can you please do a tutorial on how to API into fedex using Javascript. Fedex has a very modern end point that works in JSON. However they don't have very good help. Thanks

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

    Thanks eng

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

    I need to upload images to firebase and these images are in array .. but when I try to use loop to iterate over images and upload them to firebase .. code didn't wait and executes that part which requires those urls of images ... can anyone help ????

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

    Sir, I came here to expect how to handle API (i.e. how to go through it's documentation, important parts to look etc). Instead this video focus on what promises on javascript.

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

    Thanks a lot for helping me 🙂

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

    Best free course on RUclips

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

    Is that the API made with laravel? Bcoz i saw created_at and updated_at from the response

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

    Thank you so much for this video @Hitesh. This is the explanation I needed for promises.

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

    We need a video on cors sir. I have seen the error a lot but not understand it perfectly what it means.

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

    First' comments

  • @alltech-jg9hi
    @alltech-jg9hi 4 года назад

    nice one thanks, i had a bit of trouble extracting the latitude and longitude variables using bing maps, once, now i know console log is my friend,, thank you Mr Hitesh

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

    Dear sir, I like your personality a lot. Keep uploading such videos. I am learning from you a lot.

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

    where was this vid till now

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

    Thank you so much Sir loved your Explanation thanks for the js series .Plz upload the cors video and in depth videos explaining like Event bubbling and Event capturing topics.

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

    But sir you can use fetch in nodejs with node-fetch package

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

    Promise state rejectet HELP

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

    Amazing video sir. Classic version of making API calls using simple Javascript. Thanks for providing this content.

  • @VijaySolanki-tf6vt
    @VijaySolanki-tf6vt 4 года назад

    Hitesh shaheb please make video on cors cors origin in detailed video

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

    You make things quite simpler to understand sir!! a video on CORS plz.

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

    Great on Hitesh, it's amazing. Love to see CORS yt video soon :)

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

    Hi Hitesh

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

    Json placeholder is also good api.

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

    WEll explained.

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

    Wonderful explanation. Thanks

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

    Great stuff. Love your teaching methods. Which video were you referring to to take "joke" and put it on the web?
    Thanks

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

    Thanks bro

  • @akhror-oshie
    @akhror-oshie 3 года назад

    very good explanation, thanks

  • @NIDHISHARMA-ep6nc
    @NIDHISHARMA-ep6nc 3 года назад

    Tysm Sir

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

    yes sir please make a video on CSRF

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

    Yes sir we need video on CORS please sir...

  • @MDASIF-wo7ck
    @MDASIF-wo7ck 4 года назад

    We need mean stack course...
    Like mern stack

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

    Great video searching just now

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

    Please post CORS videos aslo

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

    please make a series on AJAX please

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

    Sir make a video on CORS

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

    Start of the day with Hitesh sir 💐💐💐

  • @AbhishekKumar-kd7bp
    @AbhishekKumar-kd7bp 4 года назад

    3:50 one Chrome ext... got removed..

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

    thanks this video is so use full

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

    A video on cors yess 🙋‍♂️

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

    This is very fun!!

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

    amazing explanation

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

    great resource for JS

  • @alimagnetic-iransenigma9647
    @alimagnetic-iransenigma9647 4 года назад

    very good thanks

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

    Great video 👍

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

    #10minutesJS day 56!