Fetch API with Async/Await (GET, POST, PUT, DELETE)

  Рет қаралды 28,799

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 25
@princeoguru446
@princeoguru446 Жыл бұрын
This is the best content available on the internet rn. I have searched several youtube channels but finally found a reason to smile
@PegeCovers
@PegeCovers Ай бұрын
One of the best teachers on this cursed platform.
@AlbrechtJ
@AlbrechtJ 2 жыл бұрын
Wow, this guy is a good teacher. Very clear explanation.
@Coding-ls7ys
@Coding-ls7ys 6 ай бұрын
Thank you so much for your explanation! I was searching for a particular video that could cover a lof of ground on api and I found it. Your explanation is clear and precise and doesn't make any problems to understand comparing to the content in my native language
@ulugbektoshmatov3433
@ulugbektoshmatov3433 10 ай бұрын
Tutorials by You and Net Ninja are just at another level🙌
@archangel4894
@archangel4894 2 жыл бұрын
Hey dude, I just want you to know that your video helps me to understand better how to manipulate data from API. Thank You!
@Jupiter5001
@Jupiter5001 Жыл бұрын
Best video explains Async/Await
@ByteGrad
@ByteGrad 2 жыл бұрын
Hi, mastering JavaScript is critical if you want to be a modern, professional developer: www.udemy.com/course/professional-javascript-course/?referralCode=0C1D5752923168BC87C2 Also, if you are a front-end developer then mastering CSS (including Flexbox, CSS Grid, etc.) is equally important: www.udemy.com/course/professional-css/?referralCode=4C3C08E82629E6B15752
@ludwigvillalba1886
@ludwigvillalba1886 Жыл бұрын
Well explained!
@leythecg
@leythecg 2 жыл бұрын
very well explained and presented! Thanks very much!
@erickgarciacosta
@erickgarciacosta Жыл бұрын
Thank you for this amazing content! Helped me a lot and it was the best I found on internet!
@codecobber1107
@codecobber1107 2 жыл бұрын
Absolutely brilliant. Thank you
@prasad_yt
@prasad_yt Жыл бұрын
Excellent explanation... that is teaching ❤
@Abbos_700
@Abbos_700 11 ай бұрын
thank you
@bitcollector6285
@bitcollector6285 Жыл бұрын
Thanks for the video! Very useful! I have a few questions: @ 3:29 line 6 1) is this return statement mandatory/necessary? 2) How can we use this return statement? I'm trying to store the json data retrieved by fetch like this: let words = fetch('words.json').then(res => {return res.json()})... or return the data in the next then() block but instead of the the array i'm expecting to get i'm getting a promise object. Of course i can declare a global array var and assign the res.json() to it... but i thought all these new features could somehow eliminate the use of global vars. Any ideas please?
@ByteGrad
@ByteGrad Жыл бұрын
1) Yes, res.json() alone gives us a promise. We should return that promise. 2) I'm not sure what you mean exactly. After returning the promise in the first .then() block we get the value with which that promise resolves in the second .then() block.
@bitcollector6285
@bitcollector6285 Жыл бұрын
@@ByteGrad Thanks for the reply 2) What I mean... ie fs.readdir comes in 2 flavors, one sync one async. If i want to use the array returned by the function at a later time I can use the sync version. Is there anything similar in fetch as well? ie something like var mydata = fetch("blah').then(another blah).then(...); Or the only way to store this data is something like: var mydata; fetch("blah').then(another blah).then(data=>{ mydata = data;} ); The 2nd way works for me but it doesn't look very... elegant !
@ByteGrad
@ByteGrad Жыл бұрын
@@bitcollector6285 Second way is how it would work, yes. Check out my async/await with fetch video, that syntax is more elegant. Or just go straight to my Professional JavaScript course to see how it works with realistic projects
@bitcollector6285
@bitcollector6285 Жыл бұрын
@@ByteGrad Thank you!
@cescr3821
@cescr3821 2 жыл бұрын
thank you love ♥
@mretineh1172
@mretineh1172 2 жыл бұрын
Thanks for this
@vincenzocristiano135
@vincenzocristiano135 2 жыл бұрын
thank you Sir
@basmong
@basmong Жыл бұрын
How to switch to another page properly? It shows that "total_pages: 2" within the data object.
@anurajms
@anurajms 2 жыл бұрын
thank you
@Khiladi-Kisse
@Khiladi-Kisse Жыл бұрын
where can i get the source code you used in this video my good sir?
Promises in JavaScript (+ Async Await, Fetch API Example)
24:02
Dogs, JavaScript & An API 🐶 Fetch, Promises & Async Await
1:09:16
LearnWebCode
Рет қаралды 97 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Fetch API in 4 Minutes (GET, POST, PUT, DELETE | JSON)
5:00
ByteGrad
Рет қаралды 48 М.
Angular Resource API - Everything You Have To Know (so far)
27:58
Decoded Frontend
Рет қаралды 18 М.
Is Next.js 15 any good? "use cache" API first look
8:16
Beyond Fireship
Рет қаралды 127 М.
Ten Steps to Mastering the Fetch API
2:19:52
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 50 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 493 М.
POST Form Data as JSON with Fetch API in JavaScript
9:25
ByteGrad
Рет қаралды 68 М.
How to FETCH data from an API using JavaScript ↩️
14:17
Bro Code
Рет қаралды 170 М.
1.1: fetch() - Working With Data & APIs in JavaScript
15:39
The Coding Train
Рет қаралды 456 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН