Donate us:
http://paypal.me/tipawais
Callback vs promises in javascript and nodejs. Asynchronous programming lead us to callbacks and promises. You will learn what is callback, what is promise, how to use promise and callbacks in javascript and where to use it.
JavaScript Book: http://amzn.to/2DoQS1i
Join facebook group:
https://www.facebook.com/groups/996305460498149/
More Javascript Tutorials:
Original source
30 responses to “Callbacks vs Promises in JavaScript”
Good video! Thanks.
thx its helpful
bro, your tut is awesome.. i loved it.. i used promises many times but i never understood them.. but tut made me so easy
and don't forget to add .catch(error) in the end of promise chain
Set playback speed at x1.5
Nice bro
superb
You showed the resolve part. What about the reject part? How do you handle that?
Awesome video. I like the way you describe the thinks but needs a real time example so it clear more in real application way..
excellent teaching style
how to achieve synchronous forloops
Too many ads
Confusing
Thanks Omer, this is the best explanation I found on the net explaining the difference and use of both! Can I reach you by email?
forgot to explain 'reject' and catch method of promise
Thank you,…..very clear and detailed explanation….I benefited…..
nice , thanks
u make it more complicated
You are speaking slowly and clearly. This is great for a learner like us. Thanks for explaining
I'm pretty sure node.js is not a framework of JavaScript. Actually, it is a runtime environment for JS code.
It is great.
I totally get the problem. It happens alot to me on ajax calls. The line below my ajax call fires before I get the value from my ajax call..and I too used the same technique. That is added all cases inside the success callback of the ajax so that they only fire after the value is recieved
Awesome! Very well explained.
There is difference between promise and callback like Promise.all(). Using promise, we can call(asynchronously) all the promises inside an array.
thx
Confusing
Awais Mirza
In the "Java Game Programming – Develop a Brick Breaker Game"
the ball flies through the right wall. How to fix it?
+Awais Mirza can i ask you a question regarding intellij idea? i was trying to run on my computer command prompt to execute the intellij idea .java files. But i cant find the .java files and i always encounter "could not find main class". Could you help out? Really appreciate your java beginners video.
+Awais Mirza
Could you take a quick look at your video called: "JAVA DATABASE TUTORIAL WITH SQLITE Create School management System". I have a really important question
thanks
Sir teach Javascript with html with. .. the example