How to fetch data asynchronously in JavaScript

  Рет қаралды 702

Aurooba Makes

Aurooba Makes

Күн бұрын

Maybe one of the toughest things to figure out when I was getting started with JavaScript was how to asynchronously fetch data from a remote source. It always felt unreliable, confusing, and inconsistent. But what was actually happening was that my understanding of it was inconsistent. This video is going to get you up and running better than I did when I was first guessing in the dark around data fetching.
However, this is one of the few concepts, I encourage you to dive deeper on when you have a chance. ​Start here, in this free guide at JavaScript.info​ (javascript.inf..., it helped me a lot when I finally made the effort to understand data fetching better.
ℹ️ This video is part of a crash course series, JS Essentials for WP Devs. Get the entire series, the code repository, and more by signing up for the series via email: aurooba.com/js...
If you found this video helpful, please subscribe and hit the like button!

Пікірлер: 7
@umairasad3896
@umairasad3896 6 ай бұрын
Superb explanation❤. Nice video
@BrinleyBlogette
@BrinleyBlogette 6 ай бұрын
Fantastic explanation. You explain things great.
@AuroobaMakes
@AuroobaMakes 4 ай бұрын
Glad it was helpful!
@voboghure-dev
@voboghure-dev 6 ай бұрын
Nice, on point. 👍
@umairasad3896
@umairasad3896 6 ай бұрын
please make a video on "this" keyword.
@RossWintle
@RossWintle 6 ай бұрын
I was really confused for a minute because you didn't "await" the call to getGithubUserData(). (Normally if you are calling an async function, you would "await" it) But then I noticed that the reason you didn't have to await it is that the console.log is inside the function and that is what is logging the result. If getGithubUserData returned the userData, then anything calling it would have to await it. Is that right?
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 6 ай бұрын
Why this approach is better than using event handlers? I use handlers for now and should I switch to a Promise?
Babel explained in 225 seconds
3:45
Aurooba Makes
Рет қаралды 187
Two ways to import and export code in JavaScript
11:02
Aurooba Makes
Рет қаралды 344
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 85 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 22 МЛН
Object Constructors in JavaScript
7:26
Aurooba Makes
Рет қаралды 475
The 6 WCAG 2.2 AA changes you need to implement right away
14:29
Aurooba Makes
Рет қаралды 6 М.
Mutability in JavaScript is an important concept
9:04
Aurooba Makes
Рет қаралды 185
What is the spread operator in JavaScript?
9:00
Aurooba Makes
Рет қаралды 221
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 78 М.
Adding Multiple Blocks to a WordPress Plugin in a few steps
6:55
Aurooba Makes
Рет қаралды 7 М.
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
There's Way More to JSON.Stringify Than You Think
9:26
dcode
Рет қаралды 2,4 М.
The difference in variable types matters in JavaScript
6:39
Aurooba Makes
Рет қаралды 270
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 85 МЛН