Callbacks vs Promises in JavaScript

preview_player
Показать описание
Donate us:

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.

Join facebook group:

More Javascript Tutorials:
Рекомендации по теме
Комментарии
Автор

You are speaking slowly and clearly. This is great for a learner like us. Thanks for explaining

dineshbaburamachandran
Автор

Your lessons are incredible. One of the better js tutorials on here

DcodeShow
Автор

I'm pretty sure node.js is not a framework of JavaScript. Actually, it is a runtime environment for JS code.

lilililliilil
Автор

You made very simple way of explaining Call back and promise !!! Kudos !!!!

ParagShah
Автор

Micely explained, able to fully learnt.Thank.😇

zipzapzoom
Автор

bro, your tut is awesome.. i loved it.. i used promises many times but i never understood them.. but tut made me so easy

prabhukadode
Автор

Awesome video. I like the way you describe the thinks but needs a real time example so it clear more in real application way..

SurenderSingh-qyyk
Автор

There is difference between promise and callback like Promise.all(). Using promise, we can call(asynchronously) all the promises inside an array.

deepakdeep
Автор

and don't forget to add .catch(error) in the end of promise chain

Snitovets
Автор

You showed the resolve part. What about the reject part? How do you handle that?

danhopper
Автор

so how do we pass vaues to rejects in promises (when the call fails). Does it takes false after any timeouts or anyother way?

pradeepanchandra
Автор

Thank clear and detailed explanation....I

masimbagndadzibaya
Автор

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

TheZacky
Автор

thank you lot, i am doing mern stack course, pls help if there is any internship

newborn
Автор

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

namahshrestha
Автор

Awais Mirza
In the "Java Game Programming - Develop a Brick Breaker Game"
the ball flies through the right wall. How to fix it?

blumto
Автор

Could you help me, please. Well, first let me thank you for all those wonderful videos you took time to produce and share online. God bless you for that.

In your example regarding promises you set your resolve value to a hard coded value of 2.

To my understanding this value will be returned after every "then". Which should bring the end result to 2 regardless of what "first", "second" and "third" functions return.

Also how comes "first", "second" and "third" are called in "then" methods since they do not have a resolve clause.


Thank you.
Kind Regards

mocococo
Автор

+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

johndownington
Автор

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?

SA-ojbo
Автор

Sir teach Javascript with html with. .. the example

MuhammadAdnan-gxrd