Тёмный

Whats the Difference Between Callbacks and Promises? 

Coding With Chaim
Подписаться 16 тыс.
Просмотров 17 тыс.
50% 1

In this video we are gonna take a look at what promises are, what callbacks are, and how they differ from each other in JavaScript.
If you feel like you got some value out of this video, please drop a like! It really helps the channel :)
--SUPPORT THE CHANNEL--
If you would like to support the channel you can use the below link.
I would like to stress that while it would be greatly appreciated, in no way is this required!
link: www.paypal.com/paypalme/codin...

Наука

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

 

12 янв 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@joaomonteiro7
@joaomonteiro7 2 года назад
really nice job , you are the first guy on youtube that I don't need to put on 1.5x
@rishisoni7107
@rishisoni7107 3 года назад
If I got a profesor like you in my back studies, I surely became a CTO at Google. Clearly explained. Thanks
@joshk9571
@joshk9571 2 года назад
absolute best explanation of promises and i’ve seen a dozen
@privatesocialhandle
@privatesocialhandle Год назад
The best explanation out there. The analogy, and the code example were perfect. I'm not even a developer but I needed to understand these fundamentals for something else.
@naveennirban
@naveennirban 2 года назад
Dude your example made me clear after a lot of videos. Thanks✌🏼
@vakhtangnodadze4947
@vakhtangnodadze4947 3 года назад
You really do have great content. It's a shame you have so few subscribers and views, but I'm sure you'll get more. Just keep up the awesome work! Really love your interview question videos. I thin you make videos on good and important topics
@bensmith6987
@bensmith6987 2 года назад
May be, just maybe slowing down in speaking might help.
@samyybelen
@samyybelen 6 дней назад
thankiuuu very much
@crazychase443
@crazychase443 9 дней назад
Incredible, thank you!
@KaziMeraj
@KaziMeraj Год назад
So much clear and to the point! Thanks man! 💝
@iruga7379
@iruga7379 2 года назад
Omfg...whats wrong with teachers in these days...this dude alone blew up at least 6 teachers i was asking about this video theme and they all failed to explain to me.
@osyopans
@osyopans 3 года назад
Amazing explanation. Really appreciate it.
@starwaveprime7398
@starwaveprime7398 2 года назад
Another wow! Thank you!
@mithatercan
@mithatercan 3 года назад
You are already on 2x speed uhh. Great explanation tho.
@aminaleali7161
@aminaleali7161 2 года назад
Thank you. Love the videos
@portraitpictures
@portraitpictures Год назад
You talk really quickly, but I think that's what kept my attention throughout the video. It worked for me - thanks for the explanation.👏
@Sachin-qn1wf
@Sachin-qn1wf Год назад
Beautifully Explained!
@justadev____7232
@justadev____7232 3 года назад
Great explanation!
@s4lmon134
@s4lmon134 3 года назад
keep up this quality content!
@johnherrera5913
@johnherrera5913 Год назад
Master!!! Great explanation!
@farukabdullamunshi8358
@farukabdullamunshi8358 3 года назад
Another great video... Love it.
@CodingWithChaim
@CodingWithChaim 3 года назад
Thank you!
@nicopicco
@nicopicco Год назад
Wow, great video. I really liked it.
@kanaksinghal9748
@kanaksinghal9748 Год назад
hare ram Very Nice Explaination👍👍 I feel Lucky to be directly reach to your video on first attempt rather then go through many videos and may still didn't grasp the concept. hare ram
@trini8042
@trini8042 Год назад
very good explanation
@YN.PICTURES
@YN.PICTURES 2 года назад
Sir, awesome👏😊
@the_full_stack_junkie
@the_full_stack_junkie 3 года назад
Awesome video thanks Chaim!
@CodingWithChaim
@CodingWithChaim 3 года назад
My pleasure! Really glad you found it useful!
@serjio8781
@serjio8781 3 года назад
Cooking pasta while talking on the phone while while feeding the cat while watching Coding With Chaim... Easy Enough xD
@CodingWithChaim
@CodingWithChaim 3 года назад
haha this genuinely made me laugh
@serjio8781
@serjio8781 3 года назад
@@CodingWithChaim I wish JS were that effective as well xD promises are kinda a headache tho. Good burger example but sometimes you just come back with your recept and they reject you because someone has already eaten your burger xD
@CodingWithChaim
@CodingWithChaim 3 года назад
Nice I love where you’ve taken the analogy
@justinmlawrence
@justinmlawrence 3 года назад
Awesome!!! 👏🏻
@CodingWithChaim
@CodingWithChaim 3 года назад
Thank you!
@venkatasuryadeepvasireddy6664
@venkatasuryadeepvasireddy6664 2 года назад
Awesome buddy
@veemacks7255
@veemacks7255 2 года назад
I was following along with this until the final stage where you had if(true) and you immediately invoked the then method on the promise. It wasn't clear whether that function that console.log's is still at the mercy of asynchronicity. By doing it immediately, surely the file won't have been read yet and therefore the console.log won't happen. It would only happen on the completion of the asynchronous file read. So you're not immediately unpacking the result, all you're really doing (I THINK) is specifying what will happen in the future when the then method gets called later. I need to watch more videos on promises. The only use case I currently see is the add listener pattern and for that I still don't see the advantage of this.
@mohdarish4195
@mohdarish4195 10 месяцев назад
Awesome
@MuhammadIqbal-tw3mj
@MuhammadIqbal-tw3mj Год назад
What a great explanation. Thank you in advance! And it would be super super great explanation if you could talk a little bit slower. You know? Just to make sure that your "good message" delivered way more clearly and hit the right target 🔥 Just my advice..
@borisalkhasov7582
@borisalkhasov7582 Месяц назад
I thought Ben Shapiro is talking fast 😁 Good explanation! Thank you!
@ianluigilastra1850
@ianluigilastra1850 6 месяцев назад
what if you are ready to unpack the promise but the promise function is not yet done?
@longbranchjon
@longbranchjon 4 месяца назад
await
@arifhussain6742
@arifhussain6742 2 года назад
Who did check playback speed while listening him?
@longbranchjon
@longbranchjon 4 месяца назад
lol.. i did
@SandipSahoo-uo9wm
@SandipSahoo-uo9wm 4 месяца назад
Why are you running ??
@jay00146
@jay00146 2 года назад
video was good but like teaching 1 hour course in 10 mins
@alonshabat9512
@alonshabat9512 Год назад
שכוייח
@securethebag1613
@securethebag1613 4 месяца назад
slow down my boy. sheesh. thank god for playback speed .75
@geodude9395
@geodude9395 2 года назад
Bro is that your bed?
@CodingWithChaim
@CodingWithChaim 2 года назад
no
@sajidkhaki4561
@sajidkhaki4561 2 года назад
Your speed is like sporty car..Hold on
@dpr6516
@dpr6516 3 года назад
Please slow down, I can't keep up!
@VishalSingh-bo2ow
@VishalSingh-bo2ow 3 года назад
well you can always control the speed of playback :)
@InshuMussu
@InshuMussu Год назад
Good one.. I thought the playback speed was 1.25x but it was normal
@sensitivey
@sensitivey 3 месяца назад
U talked so fast!
@omarghoche1828
@omarghoche1828 10 месяцев назад
you talk so fast! OMG
@offgridvince
@offgridvince 11 месяцев назад
Too fast
@nikolaprogramer33
@nikolaprogramer33 Год назад
I'm so sad I wasted the first 3 minutes on this video TBH..
@Raghav9896682112
@Raghav9896682112 Год назад
Man way too fast
@emmab151
@emmab151 Год назад
Content is good but you talk way too fast for me :(
@rangabharath4253
@rangabharath4253 3 года назад
Awesome
@CodingWithChaim
@CodingWithChaim 3 года назад
Thanks!
Далее
5 Essential JavaScript Interview Questions
20:32
Просмотров 90 тыс.
Brawl Stars Animation: PAINT BRAWL STARTS NOW!
00:52
Просмотров 2,1 млн
Вопрос Ребром - Субо
49:41
Просмотров 1,5 млн
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 76 тыс.
Callbacks in JavaScript Explained!
14:03
Просмотров 151 тыс.
REACT MEMO vs USECALLBACK vs USEMEMO
13:18
Просмотров 54 тыс.
Reference Vs Value In JavaScript
15:12
Просмотров 181 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 512 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 17 млн
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 6 млн
НЕ БЕРУ APPLE VISION PRO!
0:37
Просмотров 374 тыс.