Learn JavaScript CALLBACKS in 7 minutes! 🤙

preview_player
Показать описание
00:00:00 introduction
00:00:50 example 1
00:04:00 example 2

// callback = a function that is passed as an argument
// to another function.

// used to handle asynchronous operations:
// 1. Reading a file
// 2. Network requests
// 3. Interacting with databases

// "Hey, when you're done, call this next."

hello(goodbye);

function hello(callback){
callback();
}

function goodbye(){
}
Рекомендации по теме
Комментарии
Автор

// callback = a function that is passed as an argument
// to another function.

// used to handle asynchronous operations:
// 1. Reading a file
// 2. Network requests
// 3. Interacting with databases

// "Hey, when you're done, call this next."

hello(goodbye);

function hello(callback){
console.log("Hello!");
callback();
}

function goodbye(){
console.log("Goodbye!");
}

BroCodez
Автор

I love the way you explain. Those other youtubers had me lost.

daven
Автор

Honestly callbacks really left me confused. This is by far the best explanation I’ve watched. Tysm ❤

ewurafuaquansah_
Автор

Bro, this was the easiest explanation I've ever seen. Thank you!

isaiahaguilera
Автор

I love how you explain complex topics like this. You really helps me a lot.

masterwitcher
Автор

Fell like I'm finally understanding js. Thanks BRO! Greetings from Colombia!

vallunacoder.wecodetogether
Автор

You explained this in the simplest way possible bro! Now I love the “Bro Code” Channel!

lirez
Автор

Thank you for those example codes. Those really help with understanding the concept in-and-out of the box.

mohitanand
Автор

Finally, I understood this. The concept was very confusing when others tried to explain it, and this video made it very simple to understand. Thank you for breaking it down.

rdwulf
Автор

THANK YOU SO MUCH😭. I really needed this⭐

liamrichardson
Автор

Such a beautiful explanation, Bro...earned a sub!!

kunalpal
Автор

one of the greatest explanation i have ever seen

saichaithrik
Автор

@BroCodez : an impressive way to teach...
A lot to learn in just 7 minutes
Love from Lahore, Pakistan

usman_acts
Автор

<*_> This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal. <_*>

piotrmazgaj
Автор

This was very helpful mate. Thanks! Appreciate your work.

rameenana
Автор

Your videos helped me understand JS although i have already watched a lot of videos on JS. Thanks Bro!

cmdsrxt
Автор

Thanks for this wonderful explanations I understand this in easy way thanks bro🎉

sridhararivazhagan
Автор

And i finally understand. Greetings from Ireland x

anitamurphy
Автор

Thank You so much before this video I was not able to understand this concept, I am now able to understand better .... Pls provide more such informative videos like this... ❤

vedantrawat
Автор

The only freaking madlad that never disappoints. Only one.

SpeaksYourWord