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

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 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!

  • @garmerbak
    @garmerbak 2 роки тому +2

    very nicely done, simple and clear.

  • @LD-oq1co
    @LD-oq1co 2 роки тому +1

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

  • @viniciusm.m.7822
    @viniciusm.m.7822 2 роки тому +1

    Thanks, man!
    Deus abençoe você!

  • @chriscalver8595
    @chriscalver8595 Рік тому

    Excellent video .....thank you

  • @justnow7263
    @justnow7263 2 роки тому

    Wow, amazing.
    Sir, you are helpful

  • @dansmar_2414
    @dansmar_2414 2 роки тому

    Great video, Thank you so much!

  • @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. UA-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

  • @muntasirhossen9730
    @muntasirhossen9730 8 місяців тому

    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.

  • @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?

  • @alexandruteodor3585
    @alexandruteodor3585 2 роки тому

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

  • @workrelated7632
    @workrelated7632 2 роки тому

    Super ❤️

  • @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