Whats the Difference Between Callbacks and Promises?

  Рет қаралды 16,279

Coding With Chaim

Coding With Chaim

3 жыл бұрын

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...

Пікірлер: 58
@joaomonteiro7
@joaomonteiro7 2 жыл бұрын
really nice job , you are the first guy on youtube that I don't need to put on 1.5x
@joshk9571
@joshk9571 2 жыл бұрын
absolute best explanation of promises and i’ve seen a dozen
@rishisoni7107
@rishisoni7107 3 жыл бұрын
If I got a profesor like you in my back studies, I surely became a CTO at Google. Clearly explained. Thanks
@privatesocialhandle
@privatesocialhandle 10 ай бұрын
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.
@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!
@portraitpictures
@portraitpictures 11 ай бұрын
You talk really quickly, but I think that's what kept my attention throughout the video. It worked for me - thanks for the explanation.👏
@aminaleali7161
@aminaleali7161 2 жыл бұрын
Thank you. Love the videos
@farukabdullamunshi8358
@farukabdullamunshi8358 3 жыл бұрын
Another great video... Love it.
@CodingWithChaim
@CodingWithChaim 3 жыл бұрын
Thank you!
@justadev____7232
@justadev____7232 3 жыл бұрын
Great explanation!
@Sachin-qn1wf
@Sachin-qn1wf Жыл бұрын
Beautifully Explained!
@the_full_stack_junkie
@the_full_stack_junkie 3 жыл бұрын
Awesome video thanks Chaim!
@CodingWithChaim
@CodingWithChaim 3 жыл бұрын
My pleasure! Really glad you found it useful!
@johnherrera5913
@johnherrera5913 Жыл бұрын
Master!!! Great explanation!
@s4lmon134
@s4lmon134 2 жыл бұрын
keep up this quality content!
@nicopicco
@nicopicco Жыл бұрын
Wow, great video. I really liked it.
@mithatercan
@mithatercan 2 жыл бұрын
You are already on 2x speed uhh. Great explanation tho.
@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
@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
@YN.PICTURES
@YN.PICTURES 2 жыл бұрын
Sir, awesome👏😊
@justinmlawrence
@justinmlawrence 3 жыл бұрын
Awesome!!! 👏🏻
@CodingWithChaim
@CodingWithChaim 3 жыл бұрын
Thank you!
@venkatasuryadeepvasireddy6664
@venkatasuryadeepvasireddy6664 2 жыл бұрын
Awesome buddy
@trini8042
@trini8042 Жыл бұрын
very good explanation
@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..
@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.
@arifhussain6742
@arifhussain6742 Жыл бұрын
Who did check playback speed while listening him?
@longbranchjon
@longbranchjon 2 ай бұрын
lol.. i did
@ianluigilastra1850
@ianluigilastra1850 4 ай бұрын
what if you are ready to unpack the promise but the promise function is not yet done?
@longbranchjon
@longbranchjon 2 ай бұрын
await
@mohdarish4195
@mohdarish4195 8 ай бұрын
Awesome
@SandipSahoo-uo9wm
@SandipSahoo-uo9wm 2 ай бұрын
Why are you running ??
@securethebag1613
@securethebag1613 3 ай бұрын
slow down my boy. sheesh. thank god for playback speed .75
@jay00146
@jay00146 2 жыл бұрын
video was good but like teaching 1 hour course in 10 mins
@alonshabat9512
@alonshabat9512 Жыл бұрын
שכוייח
@sajidkhaki4561
@sajidkhaki4561 2 жыл бұрын
Your speed is like sporty car..Hold on
@geodude9395
@geodude9395 2 жыл бұрын
Bro is that your bed?
@CodingWithChaim
@CodingWithChaim 2 жыл бұрын
no
@dpr6516
@dpr6516 3 жыл бұрын
Please slow down, I can't keep up!
@VishalSingh-bo2ow
@VishalSingh-bo2ow 2 жыл бұрын
well you can always control the speed of playback :)
@nikolaprogramer33
@nikolaprogramer33 Жыл бұрын
I'm so sad I wasted the first 3 minutes on this video TBH..
@InshuMussu
@InshuMussu Жыл бұрын
Good one.. I thought the playback speed was 1.25x but it was normal
@sensitivey
@sensitivey Ай бұрын
U talked so fast!
@emmab151
@emmab151 Жыл бұрын
Content is good but you talk way too fast for me :(
@offgridvince
@offgridvince 9 ай бұрын
Too fast
@omarghoche1828
@omarghoche1828 8 ай бұрын
you talk so fast! OMG
@Raghav9896682112
@Raghav9896682112 Жыл бұрын
Man way too fast
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome
@CodingWithChaim
@CodingWithChaim 3 жыл бұрын
Thanks!
React Interview Questions 2020 (7 More Questions)
23:16
Coding With Chaim
Рет қаралды 38 М.
Indian sharing by Secret Vlog #shorts
00:13
Secret Vlog
Рет қаралды 60 МЛН
Final increíble 😱
00:39
Juan De Dios Pantoja 2
Рет қаралды 33 МЛН
Як розробити гру мовою програмування Python?
1:10:26
Видавнича корпорація Ранок
Рет қаралды 156
Declined a Job Offer After Signing.... Lessons Learned
9:35
Coding With Chaim
Рет қаралды 20 М.
5 Essential JavaScript Interview Questions
20:32
Coding With Chaim
Рет қаралды 89 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 67 М.
Why I avoid useEffect For API Calls and use React Query instead
17:45
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 375 М.
React Interview Questions 2020 (7 Questions)
21:59
Coding With Chaim
Рет қаралды 110 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,7 МЛН
Задача APPLE сделать iPHONE НЕРЕМОНТОПРИГОДНЫМ
0:57
What model of phone do you have?
0:16
Hassyl Joon
Рет қаралды 76 М.