JavaScript Callbacks Explained in 5 Minutes (Essential for asynchronous code!)

preview_player
Показать описание
You must understand JavaScript Callbacks to understand the basics of asynchronous JavaScript.

Callbacks are functions that get passed as a parameter to another function. This is made possible by the fact that functions are first-class citizens in JavaScript and they are commonly used as a way to notify that some action has been completed.

STAY IN TOUCH 👋

QUESTIONS...?
Рекомендации по теме
Комментарии
Автор

1, 3, 2

it will firstly fire off all the functions from the stack. When the stack is completed, it will go over all the events

fliplucky
Автор

excellent video mate!! bitesize knowledge for JS is so much more useful than sitting through anything longer where the person starts to waffle. Your examples are great too and extremely well scaffolded!!

Mr.PolyMath
Автор

Nice explanation. A video on the different ways to define a function in JavaScript and when they should be used would be helpful.

Anarki
Автор

Very simple and well explained. Thank you!

hristopisarev
Автор

The mechanic example made me understand everything really fast. Thank you 🙂

perminusgaita
Автор

This is actually really useful. Helped me understand my really weird bug when developing a chrome extension

thebarnold
Автор

Awesome James . Love the oil change analogy .

chadtarpey
Автор

Excelente video, claro y al punto! 💪💪

jonathanrafaelpetitrojas
Автор

I love how succinctly you explain things. Instead of using a bunch of terms that only advanced developers understand. You're meat and potatoes when it comes to teaching. Keep it up!

nevergonnabesilent
Автор

This helped me a lot you explain things fantastically!

SirGuacJulio
Автор

I have never learned a programming concept just in 12 seconds. Keep up the good work James.

hamidturkistani
Автор

Thanks. Very nicely explained! Got it.

tommih
Автор

Awesome tutorial James. Would you do make video about nested async callback function too ?

willyhorizont
Автор

I am coming from the Odin Project. I am still fairly a beginner so I more or less didn't quite understand a lot. I was interested to understand what were call back functions. Will for sure come back later for a deeper dive in functions. I am sure you have a great explanation.

voicingmymind
Автор

I gave you like immediatelly when I saw how easily and well you explain everything and later when I saw pokemon example which I really liked I wanted to give you another like but then I realised I already did it so I gave you subscription. well done ^_^

Softon_tv
Автор

thanks for precise explain, only one that make me understand

haroldtien
Автор

1, 3, 2
setTimeout (Web APIs -> Task Queue -> Call Stack (using event loop). It'll only run after the synchronous operation is done.

mbaljeetsingh
Автор

Very well explained for beginners like myself. This is very useful. Thank You for sharing.🎉🎉

psaintjean
Автор

Thanks, I needed a refresher. Great video.

Bellathor
Автор

YOURE SO DAMN AMAZING! I mean, its kinda sad that I've saw you for the first time after like 2 years of starting coding but it's worth it anyways, best dev channel, keep it up!

kutsoji