hi techsith, I would like to thank you with my whole heart. I have followed your video for my JavaScript knowledge and switched my job where i got unexpected 100% hike in my current salary. Your videos are so well explained that i can't explain i can only say that in my current team i have referred you video to many people and they are also loving ur series.
@SandeepKumar-cx7cz4 жыл бұрын
Hi Vicky Bhai m javascript/react m job search Kar raha hu Agar apke Paas time ho to meri thodi help kar dijiye Kaise kya kitna karna h jisse interview nikal jayega Email is Work42sandeep@gmail.com
@vickykumar-fb8td4 жыл бұрын
@@SandeepKumar-cx7cz maine email kiya hai apna number kabhi bhi cal kro
@SurajYadavSAIYAN-SRJ4 жыл бұрын
@@vickykumar-fb8td hello i know a friend of mine who is also looking for new job as its difficult to get a job a. fresher. can u please help ?
@cjhnsn205 жыл бұрын
Poor guy is never going back to the movies again
@mriduldey33054 жыл бұрын
lol
@somystic1003 жыл бұрын
The best async await tutorial i have ever seen. Thank you!
@rohitjoshi10032 жыл бұрын
This guy has done mastery in making easy topics looks like most difficult thing ....
@daniellund76635 жыл бұрын
After watching quite a few tutorials on this subject, I can say that this is by far the best I've come across! Thank you!
@Techsithtube5 жыл бұрын
I appreciate your awesome comment. Thanks for watching!
@dansmar_24142 жыл бұрын
I agree with you. This is gold
@shabnamnaaz46764 жыл бұрын
I have tried very hard to understand promises and async . this is a saviour . Thanks so much
@prakharkhandelwal75134 жыл бұрын
I really liked the idea of "movie queue" that you used to explain async/await. Great video.
@Techsithtube4 жыл бұрын
Glad you liked it! I was thinking a best way to explain it and It seems , real life examples are best way to explain.
@hassanali-yi4bu3 жыл бұрын
This is the best video i've seen on this topic. Even in 2021 this is the best!
@danielczarnozynski34276 жыл бұрын
Your tutorials are masterpieces! :D
@Techsithtube6 жыл бұрын
Thanks for a nice comment Daniel.
@LifeIsGood19925 жыл бұрын
You can't have butter without popcorn , funny explanation , you just nailed it , thank you
@Techsithtube5 жыл бұрын
Thanks for watching Wael :)
@ИльяВеличко-ц5у5 жыл бұрын
You made this hard topic fewer easiest, because of your examples from real life, it's a big plus for you, that makes me watch your video and understand the topic of the video. Thank you for you :)
@rubandharmaraj60943 жыл бұрын
hi sir, one doubt in 11:55 in async function there is no any time delay then why its vonsole at last?
@joelchacon92782 жыл бұрын
You're my go-to-guy, thanks for the vid.
@VinodKumar-vd9ou6 жыл бұрын
That's great explanation sir..keep it up!!!
@vaideshshankar98995 жыл бұрын
cleared all concepts at once...great
@Techsithtube5 жыл бұрын
I am glad that was cleared. Keep on learning!
@varletconstundefined5 жыл бұрын
very nice and simplified as usual good job my friend. although i think the ticket and the movie example is way to specific and realistic did it happen in real life :) ? keep up the good work
@Techsithtube5 жыл бұрын
George, I has happened to me. I am assuming it has happened to lot of other people too and I am not alone in this one. :)
@varletconstundefined5 жыл бұрын
@@Techsithtube of course it happened don't worry you're not alone 😂
@cristhiancantillo49225 жыл бұрын
You have one of the best youtube channels man... keep on
@aalekhpradeep69683 жыл бұрын
Example was great. And the way you explained it made the topic a lot clearer. Thank you Sir
@בןסלומון-ז4כ4 жыл бұрын
i have seen many videos trying to explain Async Await(all of them just show a async func but never explain or show why ths func is Asynchronous when the await clearly blocks the code in there example) and this is the best one by far how the hell this dosent get more views ?
@Techsithtube4 жыл бұрын
I am glad you think so. Keep on learning!
@ShivSinghSengar70133 жыл бұрын
hard for single, happy fellows, to understand!!!!!
@amitbanerjee95164 жыл бұрын
Thanks Very Much. I just like all your videos. Its self explanatory, very well explain. Thanks once again.
@yuqin99125 жыл бұрын
I like the cinema video example! Thank you.
@saileshpatra24886 жыл бұрын
You earned my respect from bottom of my heart.Thankyou so so much sir.Really impressed Thank You
@Techsithtube6 жыл бұрын
THanks for watching Sailesh!
@majicboca47845 жыл бұрын
Thanks for your presentation. Very helpful. Much appreciated.
@olawalemoses89586 жыл бұрын
You're a good teacher brother. Kudos
@katesugden83724 жыл бұрын
Is this based on your real life experience? If so you deserve credit for your relationship skills as well as your teaching skills ;)
@juancamiloq15 жыл бұрын
Awesome videos sith
@sundararajaneaswara61324 жыл бұрын
Very nice presentation sir
@thomashuynh62633 жыл бұрын
Your videos are great! Thanks you.
@rock_00754 жыл бұрын
maybe a silly question but i cant get my head around, when you return the t you use inside the dollar sign( $ shows its a variable) but when you call the function down and console it you just use console.log(t) i mean just t rather ${t}
@Techsithtube4 жыл бұрын
if you are using template string which mean someting like this `hi i am ${t}` this is where i am using doller sigh. but i I just want to print t I can simply use t.
@innodjetinnodjet31215 жыл бұрын
I have to say that this is so far the best tutorial on this subject...thanks a lot for sharing your knowledge with us....great video
@akshay__sood5 жыл бұрын
Is asycn await just the syntactical sugar around Promises or are they different from each other in any manner? Please some one help me clarify this.
@Techsithtube5 жыл бұрын
Akshay, async await is not syntactical sugar, it's an actual feature. Its an apple an orange comparison, though async await always returns a promise. Which means it uses promise.
@akshay__sood5 жыл бұрын
@@Techsithtube but they actually do the same thing then what's the difference between them. Just the readability? How they are different from each other functionally? This is what I want to know.
@VikramSingh-vy3jb Жыл бұрын
wow . beautifully explained
@hk_build6 жыл бұрын
awesome explanation as usual ..with practical example
@bharathKumar-or6gd4 жыл бұрын
wow, excellent , feeling very very good even many developers doesn't know actual behind
@Techsithtube4 жыл бұрын
Thanks Bharat, for watching!
@smitsism4 жыл бұрын
Do you have one for Promise and do you have some practice questions?
@OscarSanchez-hg5ux6 жыл бұрын
Thanks. I know these are didactic examples, but in a real life, does it make sense to use promises for loading user form, input data, and verify, because if you need to wait before continuing your process. For me it does not make sense to make those requests async.
@Techsithtube6 жыл бұрын
for loading the data in the user form should not be a promise. and same goes for verifying the data. However, if you are loading the data from response from a rest api. you have to wait for the response to be returned so you need to use promise there.
@TPOEWRITESАй бұрын
Thank you !! This is the best video ever :)
@novanoskillz41513 жыл бұрын
Excuse me, please what font are you using in this video?? Thank you sir.
@aakritigangwal76596 жыл бұрын
Thanks for such a detailed explanation.
@Techsithtube6 жыл бұрын
Thanks for watching Aakriti!
@vivekvanga35886 жыл бұрын
Thank you sir.. well explained..
@sampa67223 жыл бұрын
Genius channel 👍🏼
@rushikeshrajput79704 жыл бұрын
your example was good, easy to understand Promises, but it became very complicated to understand main point async/await
@dhrubojyotidas78516 жыл бұрын
Your stories are brilliant
@abhijeetsupekar45344 жыл бұрын
Well explained topic....
@lgiorgos15 жыл бұрын
I wanted to simulate a delay in the promises in the 1st example, buts setTimeout would only work in promiseWifeBringingTicks and not in the other promises. Why is that happening?
@Techsithtube5 жыл бұрын
can you send me the code on how you are using the settimeout
@lgiorgos15 жыл бұрын
@@Techsithtube I don't have that code right now. But I can send you my own implementation here github.com/giorgoslytos/promises . It is the promises.js file. I managed to make it function the way that I wanted. And it is a little bit different in the structure and I think it's a little bit closer to reality because promiseWifeBringingTicks is called first, and then the rest are called from it.
@IqbalAhmed-qk5ix4 жыл бұрын
Nice Explain Awesome thank u so much sir
@felipealvarez79606 жыл бұрын
Excellent video.. the example is great to explain the concept ! This man knows the struggle with women XD
@bluefloyd86 жыл бұрын
What plugin and IDE are you using that it autocorrects misspelled function/variable names?
@varinder210119895 жыл бұрын
thank you so much for all your videos. Respect for your work.
@TheSatheeshmca4 жыл бұрын
Nice explanation 👌👍👍
@varunsharma50456 жыл бұрын
Well explained....as expected from you sir..
@abhinavtyagi72334 жыл бұрын
But what was the difference Both the methods are giving same results. So do we use it to code look little cleaner or do it have any other benefits? I thought that by using async await we can make code to wait and then execute.
@Techsithtube4 жыл бұрын
Both, If you noticed, its waiting for things to finish before moving to the next statement. And that make your code look cleaner.
@ahmedadeebarshadahmed30475 жыл бұрын
Clear clean and neat
@jithunniks5 жыл бұрын
Wow, you really put great effort into coming up with good examples to explain a topic
@igorpavlenko4114 жыл бұрын
man u are awesome !
@samaneh776 жыл бұрын
Nice one, would you mind making the font size a bit smaller, I mean zoom out, because eyes cant see them all at once, hard to read/imagine the whole thing with this font size...
@Techsithtube6 жыл бұрын
Nesae, i will keep that in mind for the next video. thanks for letting me know.
@samaneh776 жыл бұрын
@@Techsithtube Thanks heaps, thanks for the amazing videos, I always learn a lot :)
@chetk8413 Жыл бұрын
Brilliant Tutorial thanks
@DeepakKumarDeevakar5 жыл бұрын
Great example to understand 👌
@Techsithtube5 жыл бұрын
Deepak , thanks for watching!
@sureshgarine3 жыл бұрын
Thank you Sir. you explained very well.
@abd118685 жыл бұрын
Sir is it necessary to use promise??....i think we can handle this types of situation using if-else statement
@Techsithtube5 жыл бұрын
Yes for anything asynchronous you cant simply use if else. it wont work .
@parassahu05 жыл бұрын
Simple and Clear .. It became very easier to understand with the "cinema ticket queue" example you took.
@kps26426 жыл бұрын
thanks a lot man , was just thinking about this
@johnnguyen16555 жыл бұрын
Very nice explaination, big thanks!
@bhubanmalek45894 жыл бұрын
that is very practical... thanx
@zhoukon6 жыл бұрын
Thank you soooo much. You break down hard to understand concepts in the most simplest form. After I found your channel my understanding of JavaScript really improved. :)
@rishikeshct45026 жыл бұрын
Hi, nice explaination. But I didn't get what's the flaw in promise that async await can do? Even we can do the same using async await.
@Techsithtube6 жыл бұрын
We are still using promises, it wont replace promies. async await just lets you wait. You dont want to use it everywhere. I use it in end-to-end testing.
@rishikeshct45026 жыл бұрын
techsith is it good way to handle error in try/catch? Can't we use something like .catch() function which is already been defined?
@Techsithtube6 жыл бұрын
With async await try/catch is the only way. we cant use .catch() without using .then. since we are not using then. we have to ouse try/catch
@dimitargetsov96906 жыл бұрын
Thank You, Sir, Full respect and Best regards Dimitar
@alanjb57916 жыл бұрын
Fantastic explanation!
@mailshijith5 жыл бұрын
You saved my time THANKS :)
@tanmaydas5 жыл бұрын
I am confused about JavaScript's blocking behavior. Is JS really non-blocking? Consider the following example: alert('Foo'); console.log('Bar'); If you execute the above code, the second statement never gets executed until the first statement is executed, meaning that the program "waits" for you at line 1. Hence the execution is blocked for as long as the user doesn't close the alert dialog.
@Techsithtube5 жыл бұрын
Tanmay, to answer your question , JavaScript is non-blocking if you use use the right things that are non-blocking. alert is on of those blocking things that was added long time ago before they consider javaScript non-blocking. unfortunately you can remove anything from javaScript once you add .
@bapinmalakar38466 жыл бұрын
Can u make a video on arrayBuffer and sharedBuffer
@VideoNOLA4 жыл бұрын
Is the tl;dr here that "Async/Await *replaces* Promises?" I've watched so many videos trying to educate myself on the current state of the art (I last programmed JS under ES5, so never used any of these...), but they always mix the two constructs, and my head spins.
@itcook58745 жыл бұрын
A small doubt sir.. You mentioned async function will always returns promise. But when we run below code. console.log('Person1: shows Ticket'); console.log('Person2: shows Ticket'); const preMovie = async ()=> 'movie'; preMovie().then((m)=>{ console.log(m); }) ; console.log('Person4: shows Ticket'); console.log('Person5: shows Ticket'); we have not mentioned explicitly that we are returning promise. and also if we returning a promise how it is treating that promise is resolved by default. Thank you for great videos ...
@Techsithtube5 жыл бұрын
Here your asyc function returns a promise because , when everything in that function get completed the promise is resolved. For that you don't have to explicitly return a promise.
@The-Biker-Bites6 жыл бұрын
which texteditor you are using?
@Techsithtube6 жыл бұрын
I am using JS fiddle.
@jtvlogs67115 жыл бұрын
im confusedddddd....i just need a simple answer, what is the point of async await if we already have promises? :(
@Techsithtube5 жыл бұрын
Simple answer. if you want to block, you use async await. promises are non-blocking. Imaging if you write some end-to-end tests where you have to load the page , makesure its loaded before you click on the button and make sure it opens another page before you click on that page. all of this is very simple with async await since it blocks every execution.
@mobidevtips43454 жыл бұрын
Could you please explain how we should handle a scenario in which four promises being called and two of them got failed.
@Techsithtube4 жыл бұрын
It all depends on how you want to handle the fails, if you care about the fails put them all in promise.all. if there is a dependency . you call one after another.
@luanbk915 жыл бұрын
The video is slowly but more importantly, it's so understandable and precise! Thank you.
@christopherortega62576 жыл бұрын
Thanks. Subbed and liked. Keep up the great work. :)
@pradeephupare8395 жыл бұрын
This is very nice example I like it.. can you please explain observable with the same example?
@sohamacharya92654 жыл бұрын
Thank you very much man. You explained it with so much simplicity, it's just imprinted in my mind. Great job 👍
@Techsithtube4 жыл бұрын
Soham, If its imprinted in your mind, my job is done. Thanks for watching!
@nikhil8495 жыл бұрын
Thanks man. Great stuff.
@mrXpert155 жыл бұрын
Thank You so much, sir!!! So helpful!
@dearrraed5 жыл бұрын
please what's the difference, why you didn't apply async await on promiseWifeBringingTicks to show us that the script wait the 3 seconds and then it continue the other executions ?
@최은빈-z1q5 жыл бұрын
can somebody please explain where I need to put the word 'return'? because the first promise didn't need return whereas the rest of the promises did... I thought => includes 'return'
@Techsithtube5 жыл бұрын
in the arrow functions you dont have to use return if you are returning a single line.
@jaayaustin3364 жыл бұрын
than you sm, this really helped
@acarvey4 жыл бұрын
Great tutorial! (:
@abdullahimuse16916 жыл бұрын
Txx a lot. Love your simple approach.
@Techsithtube6 жыл бұрын
Thanks for watching! :)
@eduardmart12376 жыл бұрын
What does wivebrigingticks means?
@Techsithtube6 жыл бұрын
it should have been wifeBringingTicks :)
@geetube795 жыл бұрын
Great video. Pretty explanatory both of how async / await works and more importantly, how annoying wives are.
@Techsithtube5 жыл бұрын
lol I would not comment on the last part :)
@sriramramapragada16115 жыл бұрын
U doing really amazing job,I like all of us videos,especially javascript mock interviews, it helped a lot,thanks for ur videos
@manas_singh4 жыл бұрын
you are gold 💛
@xD-saleem6 жыл бұрын
magnificent video!!! THANK YOU SO MUCH !!!!
@kalawatinarottam5 жыл бұрын
great example
@AkhiVlogsandtalks5 жыл бұрын
How value of t is updated ?
@jacksmith8705 жыл бұрын
Can you do a playlist on hooks and context api?
@Techsithtube5 жыл бұрын
I already have a playlist on hooks. I dont have a video on context api yet but its coming soon.