Javascript working with APIs [ For Beginners ]
HTML-код
- Опубликовано: 13 июн 2024
- Javascript working with APIs
Working with APIs and making http request is exactly what is video will show you. I'll show you 3 different ways to make a HTTP request in JavaScript which are XMLHttpRequest, Fetch API and Axios library. You will also see some examples in these 3 methods which can help you to get start working with them.
_________________________________________________________________________________________
5 Javascript project ideas for beginners:
• 5 Small and Easy Vanil...
_________________________________________________________________________________________
⏲ Timestamps:
[0] 0:00 Intro
[1] 1:44 XMLHttpRequest
[2] 7:55 Fetch API
[3] 13:00 Axios Library
_________________________________________________________________________________________
Please LIKE and SUBSCRIBE for more content and supporting!
#api #javascript #fetch api
Which one is the best way to do make api calls?
It depends on the situation you want to use them.
But in short, XMLHttpRequest is better when you want your program being compatible with all browsers.
And Axios if you are working on an application where there are a lot of HTTP requests which needs a good error handling or HTTP interceptions.
Finally Fetch API is better option if you are working in a small project or if you dont want to use an external library.
@@index-zero thank you so much been struggling with this and was not able to find the better answer!
One more thing can you please make a video on how to use news api and get as much articles we want and when we click on it then we get to full page please.. thanks again.