Тёмный

What is JavaScript CALLBACK HELL? 🔥 

Bro Code
Подписаться 2 млн
Просмотров 18 тыс.
50% 1

#JavaScript #tutorial #course
// Callback Hell = Situation in JavaScript where callbacks
// are nested within other callbacks to the
// degree where the code is difficult to read.
// Old pattern to handle asynchronous functions.
// Use Promises + async/await to avoid Callback Hell

Опубликовано:

 

18 дек 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@BroCodez
@BroCodez 6 месяцев назад
// Callback Hell = Situation in JavaScript where callbacks // are nested within other callbacks to the // degree where the code is difficult to read. // Old pattern to handle asynchronous functions. // Use Promises + async/await to avoid Callback Hell function task1(callback){ setTimeout(() => { console.log("Task 1 complete"); callback(); }, 2000); } function task2(callback){ setTimeout(() => { console.log("Task 2 complete"); callback(); }, 1000); } function task3(callback){ setTimeout(() => { console.log("Task 3 complete"); callback(); }, 3000); } function task4(callback){ setTimeout(() => { console.log("Task 4 complete"); callback(); }, 1500); } task1(() => { task2(() => { task3(() => { task4(() => console.log("All tasks completed")); }) }); })
@OkReXx
@OkReXx 6 месяцев назад
daily video from bro, bro is the giga chad of the coding world
@legendrags
@legendrags 6 месяцев назад
Better title would be "What the hell is callback hell?"
@khalidelgazzar
@khalidelgazzar 6 месяцев назад
Thank you! Thats helpful!
@Ali_almughays
@Ali_almughays 6 месяцев назад
bro, you are a legend.
@abcdabcd8605
@abcdabcd8605 2 месяца назад
Awesome explanation
@VictorSilvaDev
@VictorSilvaDev 6 месяцев назад
Nice explanation
@manuelvaal1257
@manuelvaal1257 2 месяца назад
Clean explanation!👏
@DipesMandaviya
@DipesMandaviya Месяц назад
simplest and easy style to teach
@mayconbodanese7423
@mayconbodanese7423 2 месяца назад
Very good explanation :D
@ventacode
@ventacode 6 месяцев назад
Thank you so much
@jhanaman04
@jhanaman04 6 месяцев назад
Thanks for the vid bro. It was helpful to actually visualize callback hell. Waiting for async/await video. I have to learn async/await.
@BroCodez
@BroCodez 6 месяцев назад
That's coming up after promises
@namitadas5194
@namitadas5194 2 месяца назад
Amazing video in 5 mins
@hwapyongedouard
@hwapyongedouard 2 месяца назад
just learned all JavaScript from bro now i understand call backs and asnch js
@bhuviramesh8218
@bhuviramesh8218 3 месяца назад
If you want to execute the task one after the other why go for async, you should have used synchronous itself nah?
@admiralcasperr
@admiralcasperr 6 месяцев назад
Why write in JS if you aren't writing a non probable callback hell?
@indian-shorts9215
@indian-shorts9215 6 месяцев назад
If you make DSA in Js that’s the thing that everybody
@veerraptor12
@veerraptor12 6 месяцев назад
bro i love your content!!. Im a school student and my brother is a advocate, so he wants me to make a website (law firm web page) for himself so that he can receive more clients. Can u make a tutorial on that plz?? Or if u have made one plz share me the link
@BroCodez
@BroCodez 6 месяцев назад
I don't have a video where we build a full website together yet. I might do that in the future.
@kishirisu1268
@kishirisu1268 4 месяца назад
2024 - job requirement : know JS callbacks. 😂
@offlinehub
@offlinehub Месяц назад
bro i wanna know who r u
@alfonzo6320
@alfonzo6320 6 месяцев назад
love how you didnt offer any solution or pattern to that problem.
@BroCodez
@BroCodez 6 месяцев назад
That's the next video on promises
@alfonzo6320
@alfonzo6320 6 месяцев назад
@@BroCodez yay!! i can't wait!😁 Nice channel btw, keep up the good work!🔥
@olgapolka168
@olgapolka168 6 месяцев назад
0:52 tasks were complete! 💪💋!
@olgapolka168
@olgapolka168 6 месяцев назад
1:46
@olgapolka168
@olgapolka168 6 месяцев назад
Читать легче. На слух очень плохо воспринимаю.
@deadmarshal
@deadmarshal 4 месяца назад
JS is a joke!
Далее
What are JavaScript PROMISES? 🤞
12:37
Просмотров 45 тыс.
Despicable Me Fart Blaster
00:51
Просмотров 6 млн
마시멜로우로 체감되는 요즘 물가
00:20
Просмотров 3,7 млн
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
Callbacks in JavaScript Explained!
14:03
Просмотров 150 тыс.
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Whats the Difference Between Callbacks and Promises?
8:39
The Async Await Episode I Promised
12:04
Просмотров 1,1 млн
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Просмотров 14 тыс.
Despicable Me Fart Blaster
00:51
Просмотров 6 млн