JavaScript Fetch API - Getting Started

preview_player
Показать описание
You don't need an external package to make HTTP requests in JavaScript. With the built in Fetch API, you can easily make HTTP requests to work with remote APIs.

### Website

### Course Links

### Subscribe to the Learn.Build.Teach. Newsletter

### Social Media

### Website

### Subscribe to the Learn.Build.Teach. Newsletter

### Social Media
Рекомендации по теме
Комментарии
Автор

studying the code a bit more, i was initially a bit confused by your choice of variable names.

in fetchGet, shouldn't 'response' be 'request' as that's what you're sending to the url, and then your variable 'json' would be the 'response' given back

 similarly in the Async examples, your 'response' would be my 'request', and your 'body' would be my 'response' - especially since the word 'body' is a bit 'overloaded' inside the PostAync function (used 3 different ways! 1: in the request parameters, 2: as one of the object properties, and finally 3: what you have named as the request)

...or maybe it's due to the method name 'fetch' - you expect to fetch a response, but you have to request it first!

many thanks anyway :)

mickeymegabyte
Автор

How can you use an api online with a desktop app that doesn't have a server but saves its data to the computer client side data saving ect? can't find any resources online on how to do any of these things i listed.

TheNamesJT
Автор

I wanted to get your course of visual studio code on udemy
But i have few questions
Can we do a small skype chat before i purchase the course ?
I am interested in learning the course

rajeshprasadh
Автор

probably the only reason why I use axios is because of the .then(e => e.json()) line from fetch lol

kevingonzalez