What is a callback?

What is a callback?

Code Kits

7 лет назад

153,443 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

yomajo
yomajo - 14.09.2023 18:32

Help. Javascript file contains two lines. Second one doea not wait for first one to finish?

Ответить
Asmaa Qindeel
Asmaa Qindeel - 02.08.2023 10:50

simply explained, thank you

Ответить
Sean Y
Sean Y - 29.07.2023 03:28

nice and simple, understood, thank you

Ответить
Jack Power
Jack Power - 19.07.2023 10:39

this was easy to follow. thanks

Ответить
moonasha
moonasha - 19.07.2023 04:34

the fact javascript lets you put a method into an argument without declaring its type or anything is just... wow.

Ответить
Barry Chuckle
Barry Chuckle - 29.06.2023 23:11

Damn, I may actually FINALLY understand this now!

Ответить
data science
data science - 26.06.2023 23:06

nice

Ответить
Manile Srun
Manile Srun - 21.06.2023 06:19

absolutely amazing man

Ответить
Dawson Bowling
Dawson Bowling - 22.05.2023 04:33

Third or fourth video I watched to understand. Now I got it. Thank you!

Ответить
Shadowless Kick
Shadowless Kick - 19.03.2023 03:09

This is indeed one of the best videos on callback in Javascript.

Ответить
Akarsh Mittal
Akarsh Mittal - 21.02.2023 21:51

I can't belive I was having problem in understanding callbacks. Your explanation makes it look too easy 😂

Ответить
Anthony
Anthony - 21.02.2023 18:18

Amazing!!

Ответить
Stephen
Stephen - 12.02.2023 19:15

thanks

Ответить
Andrew Tate
Andrew Tate - 27.01.2023 16:24

Perfect explanation! Very easy to understand.

Ответить
Mohamed Yahia
Mohamed Yahia - 25.12.2022 02:25

5 years later and that is the best explanation for callbacks on earth hands down

Ответить
Prince Nana Oboe-Sam
Prince Nana Oboe-Sam - 11.12.2022 21:15

I can't believe he just explained a concept I have been struggling to understand in less than 5 minutes

Ответить
My sketchbook
My sketchbook - 20.11.2022 11:06

Excellent thanks

Ответить
Kanan Kontorovsky
Kanan Kontorovsky - 18.11.2022 02:06

Thank you so much, I finally understand. I appreciate how you explain slowly and with detail. Your code example is also very precise to the topic too.

Ответить
Andrei Varzari
Andrei Varzari - 02.11.2022 00:19

best and simplest explanation I've found so far, thanks a lot!!

Ответить
Laughing Man
Laughing Man - 01.11.2022 23:30

Straight to the point, real-world example, intelligible accent. Nice one.

Ответить
Sarker Sunzid Mahmud
Sarker Sunzid Mahmud - 20.10.2022 11:57

so simple and amazing. thanks man. But I have a question

I can write the code like this

var users = ["a", "b", "c", "d", "e"];

function addUser(username) {
setTimeout(function () {
users.push(username);
getUsers();
}, 200)
}

function getUsers() {
setTimeout(function () {
console.log(users);
},100)
}

addUser("f");


then why do we need callback? in that case???😅

Ответить
zapxcero
zapxcero - 19.10.2022 04:00

god-tier level of explanation here

Ответить
LooseThread
LooseThread - 14.10.2022 10:37

OMG My mind was blown on how you explained it!

Ответить
Jotaro is Darius
Jotaro is Darius - 12.10.2022 10:54

The array.push example was on point, thanks man, i am finally able to understand this

Ответить
Elise Schmidt
Elise Schmidt - 28.08.2022 22:15

The shortest and clearest explanation I could find...THANK YOU!!! You made that so easy..

Ответить
Sahr Acton
Sahr Acton - 17.08.2022 14:54

5 years later of Js programming, I finally get what a call back is! Thank you :)

Ответить
Shashank Shetty
Shashank Shetty - 04.08.2022 17:11

In java : I think we do that with help of interface
in kotlin : lamdas

Ответить
Cutzu
Cutzu - 01.08.2022 12:25

You're a life saver bro 🙏

Ответить
Snorlax
Snorlax - 19.07.2022 12:06

Good explanation, clear example. Thanks for this video.

Ответить
Passions
Passions - 29.06.2022 06:12

Damn you da man!!

Ответить
Success Stories
Success Stories - 24.06.2022 13:43

Does anyone know what text editor is he using? Looks good!

Ответить
Ero Joseph
Ero Joseph - 14.06.2022 01:33

This is the best explanation so far. thanks

Ответить
Brandon R
Brandon R - 11.06.2022 15:09

"We're going to use a callback to enforce the order of operations that we want". THANK YOU!

Ответить
Mojtaba Zamani
Mojtaba Zamani - 10.06.2022 22:02

Thank you, Sir. The best explanation I've ever seen

Ответить
BoiledLeche
BoiledLeche - 02.06.2022 02:41

Best teacher hands down

Ответить
Lightbulb Jamie
Lightbulb Jamie - 29.05.2022 16:55

really good video

Ответить
Dennis Allard ok
Dennis Allard ok - 28.05.2022 15:22

Why such poor contrast, like a pale green and pale yellow against pale black. The comments are even worse they're pale pale yellow against pale black. Almost impossible to read.

Ответить
Chimbu
Chimbu - 20.05.2022 21:18

Nice

Ответить
Shibani Pattnaik
Shibani Pattnaik - 17.05.2022 20:03

Hello, this was extremely clear to understand and i looked for async by you(but couldnt find). Your videos are great, why did you stop making them???

Ответить
Tiantian Happy
Tiantian Happy - 04.05.2022 21:43

very clear

Ответить
Pedro Vinicius
Pedro Vinicius - 29.04.2022 17:17

If you have just putted addUser(); intead of pass the function as argument (callback) would it works?

Ответить
tomas delgado
tomas delgado - 26.04.2022 02:11

Thank you, your explanation was very good, I understood perfectly.

Ответить
michael k
michael k - 21.04.2022 05:22

"By the end, I GUARANTEE, you'll understand perfectly"... And he fuckin nails it.

Ответить
Craig Monroe
Craig Monroe - 16.04.2022 15:26

Amazing explanation!

Ответить
Hakami
Hakami - 14.04.2022 11:31

Why don't you just remove the settimeouts? Why not just call getUsers from within AddUser?

Ответить
Jim Lambert
Jim Lambert - 08.04.2022 04:40

Thank god.

Ответить
Rafael
Rafael - 06.04.2022 17:00

perfect explanation

Ответить
THE ULTIMATE GAMER
THE ULTIMATE GAMER - 05.04.2022 07:43

Wonderful

Ответить
Md Forid
Md Forid - 29.03.2022 18:32

nhie

Ответить
Tyler Myers
Tyler Myers - 22.03.2022 20:14

this is great

Ответить