How to Easily Call APIs With Fetch and Async/Await in JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 31

  • @abubalo
    @abubalo 2 ปีที่แล้ว +4

    What is more exciting than seeing Dcode new video notification.

  • @ernestoluckie
    @ernestoluckie ปีที่แล้ว

    I really wanna say THANK YOU. This tutorial helped me solve a problem in which I was stuck for weeks!

  • @LD-oq1co
    @LD-oq1co 2 ปีที่แล้ว +1

    This video helped me a tone with working out how to build a feature. Thank you so much

  • @garmerbak
    @garmerbak 2 ปีที่แล้ว +2

    very nicely done, simple and clear.

  • @chriscalver8595
    @chriscalver8595 ปีที่แล้ว

    Excellent video .....thank you

  • @viniciusm.m.7822
    @viniciusm.m.7822 2 ปีที่แล้ว +1

    Thanks, man!
    Deus abençoe você!

  • @justnow7263
    @justnow7263 2 ปีที่แล้ว

    Wow, amazing.
    Sir, you are helpful

  • @dansmar_2414
    @dansmar_2414 2 ปีที่แล้ว

    Great video, Thank you so much!

  • @muntasirhossen9730
    @muntasirhossen9730 6 หลายเดือนก่อน

    How is the job market now in Australia for software developers?

  • @bjornsurstrom4528
    @bjornsurstrom4528 2 ปีที่แล้ว

    Thank you!

  • @webdevuk
    @webdevuk 2 ปีที่แล้ว

    good video, mate, I'm going to try to use some of this to do basic authentication on an open power automate or gappsscript endpoint for my browser extension.

  • @workrelated7632
    @workrelated7632 2 ปีที่แล้ว

    Super ❤️

  • @tamas-pamas
    @tamas-pamas 2 ปีที่แล้ว

    Even if you get your API token from the database it'll be still visible in the dev tools if you have to send it through in the Headers. Am i wrong here?

    • @sc1ss0r1ng
      @sc1ss0r1ng 2 ปีที่แล้ว

      It might be, not sure.
      But when looking at fx. TH-cam's info under Network in DevTools, I can see that my Authorization is a hashed key.
      So no matter what, it might just be a good idea to hash it when returning it from the database.

    • @tamas-pamas
      @tamas-pamas 2 ปีที่แล้ว

      @@sc1ss0r1ng if the API accepts it hashed then it's OK...

    • @dcode-software
      @dcode-software  2 ปีที่แล้ว +1

      Sorry I should have made this clearer in the video. What I meant was that you let your back-end make the API call and then pass the result down to the front-end

  • @alexandruteodor3585
    @alexandruteodor3585 2 ปีที่แล้ว

    What color theme are you using in this video? I like it so much.

    • @dcode-software
      @dcode-software  2 ปีที่แล้ว +1

      Hey it's my own VS Code theme - you can search for "dcode" to find it

    • @alexandruteodor3585
      @alexandruteodor3585 2 ปีที่แล้ว

      @@dcode-software Thanks! :)

  • @LD-oq1co
    @LD-oq1co 2 ปีที่แล้ว

    can someone explain why you probably shouldn't use an onClick handler on the element?

    • @mharding7
      @mharding7 ปีที่แล้ว

      @Joaquin Ocampo Why? Vue, React, Alpine JS and everyother JS framework call functions from inline. Why is it a bad idea?

  • @sammybammy52
    @sammybammy52 2 ปีที่แล้ว

    dcode.js ✨

  • @leonvanrijswijk8409
    @leonvanrijswijk8409 2 ปีที่แล้ว

    Thanks, btw your udemy link does not work, 404

    • @dcode-software
      @dcode-software  2 ปีที่แล้ว +1

      Hey thank you there are no courses on there at the moment but will be uploading some more later in the year!

  • @umangternate
    @umangternate 2 ปีที่แล้ว

    Is it possible to request a tutorial? If yes, this is the story. So, I want to know how long a user is on a page. I know how to set an entry time var but I don't know how to set an exit time var and send the data to backend right before the user moves to other page. Please teach me how to do that. I tried to call a function with onbeforeunload but it didn't work for me.

  • @Pareshbpatel
    @Pareshbpatel 2 ปีที่แล้ว

    {2022-10-20}

  • @vishvish24
    @vishvish24 2 ปีที่แล้ว

    I am getting an error in javascript when using for loop for assigning id dynamically. Can u guide? How to share u code ?? Ur mail id pls