No video

Callbacks vs Promises vs Async/Await - Javascript in Tamil | Become a Full Stack Web Developer

  Рет қаралды 12,780

Code with Guruji

Code with Guruji

Күн бұрын

Let's learn about what are Callbacks, Promises, how they differ from each other, more over why we need these things in our code!
It's not needed when working with synchronous tasks, but when it comes to asynchronous we have to do some extra work to get our data. It's not possible to handle those things with return keyword. That's where callbacks come to rescue.
For the simple applications, we don't mind much about callback functions and it works well. But when the application grows, it makes our code hard to debug and affects the readability.
So we started to move to promises which makes our code much simpler than callbacks. And it's really easy to use and understand. Finally even more simpler, we got async await to write our complex asynchronous code into simple synchronous style code.
So we'll try to learn these things, and start writing the better code! In the mean time, don't forget to mention your thoughts, comments, ideas, and suggestions in the comment box below!
With love,
@CodeWithGuruji

Пікірлер: 42
@rashiffrashiff1590
@rashiffrashiff1590 2 жыл бұрын
Thalaiva you are the REAL GURUJI🔥🔥🔥🔥🔥🔥🔥
@klintonj525
@klintonj525 3 жыл бұрын
I never seen this much clear explanation in this topic 🙏 Thank u soo much for given this wonderful video . God bless u.
@muneess2979
@muneess2979 3 жыл бұрын
Bro semaya sollitharinga..keep up the good work .....hats off..i wish your videos should get more views..
@skanda_myil
@skanda_myil 3 жыл бұрын
Very Good Explanation of All your Videos, Please Continue more videos
@sakthivels5275
@sakthivels5275 3 жыл бұрын
One of the best vid Tut I ever seen bro...... In Tamil 🔥
@tamilmurugan3387
@tamilmurugan3387 2 жыл бұрын
Bro, Amazing content, your way of explanation is very different from others. Really crystal clear explanation, Thank you very much.
@rajaview2991
@rajaview2991 3 жыл бұрын
Bro nice explanation , please don't stop the teaching bro.
@blackknightbazil4249
@blackknightbazil4249 2 жыл бұрын
Super bro... Perfect and clear explanation.. This is "THE BEST" video for callback,promise, async...
@dhilipbabu8889
@dhilipbabu8889 3 жыл бұрын
Brother vera level explanation, till now I have confused about these three concepts in JS and but after seeing this session it really helped me a lot. kindly share some more definitions(In English) of all in the upcoming topics. That would be helpful for the interview. Thanks a lot for your wonderful effort.
@venkatasamy5322
@venkatasamy5322 3 жыл бұрын
Explanation சூப்பர் ஜி👌
@vijayb6754
@vijayb6754 Жыл бұрын
Guruji ur Explanation is awesome ❤❤❤❤🔥🔥🔥🔥
@chandru.a6362
@chandru.a6362 Жыл бұрын
Neraya english kaaran video paathen theriyumaaa onnum purilaaa aanaa neegaa vera maarii
@thamaraiselvan3431
@thamaraiselvan3431 3 жыл бұрын
Awesome explanation Brother🤝... Now I can also explain the concept to someone.. Because of your teaching.... Thankyou for this tutorial... Keep it up
@nishanthm1091
@nishanthm1091 3 жыл бұрын
Bro now I'm start your JavaScript playlist.. Crystal clear explanation bro.. I have one doubt playlist la 44 videos inu irruku but upload la 43 tha irruku bro..
@CodewithGuruji
@CodewithGuruji 3 жыл бұрын
Thank you so much.. oru video re-upload paniruken. The previous one is in private. So maybe anga count kaatum.
@nishanthm1091
@nishanthm1091 3 жыл бұрын
@@CodewithGuruji thanks you bro , etha 43 videos complete pannapothuma bro ... Last 4 month ah channel la video Varala
@nachimuthuramalingam4979
@nachimuthuramalingam4979 3 жыл бұрын
Clear explanation 👌👏. Good job Bro thanks a lot 🙏👍
@prabakaran7908
@prabakaran7908 Жыл бұрын
Nice bro...purpose - when multiple async calls depends on one another
@unknownkomali9739
@unknownkomali9739 2 жыл бұрын
Anna yain video podurada stop pannitinga pls upload panunga...unga teaching semma🔥🔥🔥
@Praveenkumar-rt6lp
@Praveenkumar-rt6lp 3 жыл бұрын
Great Explanation
@maranvetry3877
@maranvetry3877 3 жыл бұрын
Nice explanation bro 🔥🔥
@arunm9199
@arunm9199 4 жыл бұрын
Execellent Good Explanation
@nivasdhina4367
@nivasdhina4367 2 жыл бұрын
Amazing explanation brother........
@MathanKumar69
@MathanKumar69 2 жыл бұрын
Very very very good explanation thank you so much
@mohamedjaffir6394
@mohamedjaffir6394 2 жыл бұрын
clean explanation...
@youtubepaiyan
@youtubepaiyan Жыл бұрын
who are all from centizen ?
@SUmar-we4cj
@SUmar-we4cj Жыл бұрын
thank u so much bro
@nachimuthuramalingam4979
@nachimuthuramalingam4979 2 жыл бұрын
js closure video deep explanation kudunga edhay maathiri..and real time la yenga use pantrom nu ? please
@CAAHariharasudhan_M
@CAAHariharasudhan_M 3 жыл бұрын
Bro redux thunk redux saga pathi vdo podunga bro
@frontendhubs
@frontendhubs Жыл бұрын
Super
@sm2irfan
@sm2irfan 3 жыл бұрын
tnx bro
@visuv8379
@visuv8379 Жыл бұрын
bro antha setTimeout function ku pathila namma realtime la ,i mean programming la antha place la yenna use pannuvom
@CodewithGuruji
@CodewithGuruji Жыл бұрын
Mostly api calls to the backend server
@teamdotxviper3148
@teamdotxviper3148 2 жыл бұрын
Bro ne romba complex a teach pandringa indha topic purla
@aravinthdavid8837
@aravinthdavid8837 10 ай бұрын
Bro oru community form panni zoom meeting la class edunga bro full stack web development 500 pay panren bro edunga bro enaku nalla trainer kidaikala bro pls I am non IT person😢.
@antonyprincepeter6378
@antonyprincepeter6378 2 жыл бұрын
why do we use "return promise" in all the function?
@CodewithGuruji
@CodewithGuruji 2 жыл бұрын
That's a good question. Let's think about a scenario where we need to fetch some data from backend APIs or somewhere from the internet. There are something we need to understand. 1) It's not gonna happen immediately. Means we'll not get data from the internet as soon as we asked for it.. There'll be some delay in milliseconds or more due to the network or latency or server load. 2) We are not sure that we'll get the data back all the time. If something goes wrong we won't get back, like our network may go down or the back-end server may not respond. So thinking programatically, we always need to have a control over such things that'll occur in the future, and future things are not for sure That's the "Promise" in JavaScript just like variables and functions. Promises in JS lets us wait for such things to complete ("settled" more accurately). So once promises are settled we'll be left with either success (resolved) or failed (rejected). Now you may ask where this promise comes from.. All of the asynchronous tasks return promises automatically. Like fetching the data / Reading a file from the disk (Not synchronously) / Writing a file to the disk Coming back to your question, we are kinda mutating the same scenario here. If we return the promise manually, we can hold the execution for some time until the operation inside the promise get settled, just like what will happen when you fetch the data So the key point is we are also able to hold the execution manually to wait for some things to complete and then continue with its flow.
@mahalakshmimahendran1652
@mahalakshmimahendran1652 Жыл бұрын
bro ninga full stack developer ah
@CodewithGuruji
@CodewithGuruji Жыл бұрын
Ama
@yamunam4083
@yamunam4083 2 жыл бұрын
Hi
@CodewithGuruji
@CodewithGuruji 2 жыл бұрын
Hi
@gunasekaran1217
@gunasekaran1217 2 жыл бұрын
@@CodewithGuruji Hi bro
Fetch API in Javascript (Tamil) || Become a Full Stack Web Developer
29:44
Just Give me my Money!
00:18
GL Show Russian
Рет қаралды 585 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
Async JS Crash Course - Callbacks, Promises, Async Await
24:31
Traversy Media
Рет қаралды 1,4 МЛН
#14 - Javascript Callback Function - (தமிழில்) |  Modern JavaScript in Tamil
22:48
Whats the Difference Between Callbacks and Promises?
8:39
Coding With Chaim
Рет қаралды 17 М.
Promises | Ep 02  Season 02 - Namaste JavaScript
39:06
Akshay Saini
Рет қаралды 478 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Javascript Promises | Easier than you think
17:20
JAFS Code School Tamil
Рет қаралды 11 М.
Sign In With Google Button Implementation in JavaScript - Tamil
44:41
Code with Guruji
Рет қаралды 1,3 М.