Introducing Fetch API | Better than XHR | The Complete JavaScript Course | Ep.75

preview_player
Показать описание

📖 Chapters
00:00 - Introduction
00:38 - Dummy REST API
01:51 - Understand the Fetch API - How it works?
09:43 - How to send a POST request using Fetch API?
19:15 - Quick Assignment
23:26 - Error Handling
25:21 - Conclusion

Have any doubts? Join this Telegram group and ask your question. You can also share the projects that you make in this group.

Social Media

Music by geoffharvey from Pixabay
Рекомендации по теме
Комментарии
Автор

Finally is video me mera API ka topic properly clear hua hai...thanks a Lot Anurag Sir...worth watching your all videos

PriyaRajput-xmvl
Автор

Sir, 2 din lag gaya mujhe achhe se understand karne me aur sath sath practice karne mein, abhi jaa rahu async await padhne 😊 exams k baad firse track pe aa raha hoon

aur ye raha XhrHttpRequest ka replaced code using fetch api



function makeHttpRequest(method, requestUrl) {

return fetch(requestUrl, { method })
.then(response => {
return response.json();
});
}


subhambachar
Автор

fetch("link1")
.then((response) => {
return response.json();
})
.then((usersData) => {
return fetch(`link2`);
})
.then((response) => {
return response.json();
})
.then((commentsData) => {
return fetch(link3);
})
.then((response) => response.json())
.then(console.log);

😇Thank you Anurag for clearing these twisted concepts.

fahadshaik
Автор

Sir ab Post krne pr Status Code- 201 Created aata hai

kartiksharma
Автор

Thank you very much Bhaiya. Understood very well.

Alok.
Автор

Brother You are doing great job this is helpful please keep bringing more Numbers in youtube will come.

chirag
Автор

Thanks sir you take time for people like us make videos to learn i appreciate the hard work you do for us
I hope this course reach more and more people they will also get knowledge from you.

prashlovessamosa
Автор

This video clear my all doubts regarding APIs. You doing GREAT JOB. "Ghabraya nhi kro 👍"

TahaGhous
Автор

Thanks sir I am watching your complete playlist

shubhamshubham
Автор

maja aa gaya mai ye maja poore desh baasiyo ko dena chahta hu

shyamkumar-rsmx
Автор

Sir Ji Backend Ke Bare Me Bhi To Btaiye

ASRailzone
Автор

very helpful video in an easy manner. Thanks

Payal-Sharma