JavaScript async/await Keywords | Asynchronous Programming | JavaScript Promises | Error Handling

  Рет қаралды 4,515

tapaScript by Tapas Adhikary

tapaScript by Tapas Adhikary

Күн бұрын

Learn how to use Async/Await Keywords in JavaScript. Understand the various rules of it and how to handle errors in async operations.
Timecodes
0:00 - Introduction
1:00 - Async and Await Keywords and Rules
12:56 - Handling Errors with Async/Await
21:20 - The fetch API and Async/Await
21:48 - Wrapping UP and What's Next?
Important Links:
- Source Code: github.com/atapas/promise-int...

Пікірлер: 34
@himanshuwiz
@himanshuwiz 10 ай бұрын
seriously this series is gem for js learners I am reading the article by you sir and got to know you also have yt channel that is very useful as your articles
@tapasadhikary
@tapasadhikary 10 ай бұрын
Thanks a lot, Himanshu. 💛❤💛
@Ki1ngOfGods
@Ki1ngOfGods 2 жыл бұрын
i just finished going all of your tutorials, it took some hours throughout some days but I feel more confident with what I didn't know before this. I knew just enough to get up and running and make apps, but this helped me understand what's really going on behind the scenes, thank you!
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Very glad. Thanks
@IT_Pastor
@IT_Pastor 2 жыл бұрын
Thank you for explanation async/await
@tapasadhikary
@tapasadhikary 2 жыл бұрын
You are welcome.
@prabhakaranrp8705
@prabhakaranrp8705 2 жыл бұрын
Great content
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Thank you 💙
@Gaurav161
@Gaurav161 2 ай бұрын
I have a question. This is in regard to another video (JavaScript Synchronous vs. Asynchronous) where you have explained how event loop does the scheduling. In case of Promises, is the code in the 'then' block or after 'await' considered as a callback function? Basically, is it kept in the 'Callback/Task queue' or the 'Job queue'? I think it should be there in the job queue, so that it gets priority over any other callback waiting in the 'Callback/Task queue'. Can you please confirm?
@tapasadhikary
@tapasadhikary 2 ай бұрын
Yes, that's right. It will be in the job queue.
@Gaurav161
@Gaurav161 2 ай бұрын
@@tapasadhikary Thanks for the confirmation.
@noneyabiznus
@noneyabiznus Жыл бұрын
this is key. thanks
@SunitDasgupta
@SunitDasgupta 2 жыл бұрын
Hi Sir, Thanks for the explanation. If possible could you please also share practical implementation of for await loop for async object iteration.
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Sure, I have actually captured that in one of my articles. Please check this out: blog.greenroots.info/common-mistakes-in-using-javascript-promises#heading-1-looping-with-promises I am now thinking to create a short video on this topic in the coming days. Please let me know if the above link helped.
@saiharshithaseshadri432
@saiharshithaseshadri432 Ай бұрын
Thank you sir. Are you planning to make a react native course in the future?
@tapasadhikary
@tapasadhikary Ай бұрын
Yes, some time this year.
@yogeshr9981
@yogeshr9981 2 жыл бұрын
Sir, thanks a lot for the tutorial and the resources. it was really valuable & i really learnt a lot. I'm unable to find the final video for which you said you'll incorporate all the concepts that you've thought so far. so that it'll be a proper example & illustration.
@tapasadhikary
@tapasadhikary 2 жыл бұрын
The last one is pending. I’m right now focusing on the React series. But the last one I’m planning to do as a live session, around April. Stay tuned ✨
@lavrentiyrubtsov551
@lavrentiyrubtsov551 Жыл бұрын
@@tapasadhikary Thanks a lot for this series you explained all these things so clear despite it was fairly dense stuff to grasp btw did you post the latest video about promises? May i have a link?
@tapasadhikary
@tapasadhikary Жыл бұрын
Thanks a lot. That series need 2 more videos. I'll create.
@marrisaikrishna416
@marrisaikrishna416 2 жыл бұрын
Thank you so much sir... Could you please make a full course on react js ..
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Hey Marri, thanks! I'm getting this request a lot. Shall plan it in Jan 2022.
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Started ✨
@saivivekravi2780
@saivivekravi2780 Жыл бұрын
For example we have a function like this const getaData=async ()=>{ const data= await userApi(); console.log("hi"); } Here if userApi takes 1 minute has await will wait until promise return if promise is settled . Then it goes to next line ( here it seems like a blocking a code because console.log("hi") will return after 1 minute which it seems like a blocking code Sir please can you explain my example if it is wrong
@anejasahil
@anejasahil 2 жыл бұрын
waiting for the next video
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Just published :)
@denisecknauer4627
@denisecknauer4627 9 ай бұрын
I struggled with understanding Promises but this series helped me a lot! :D I was just wondering if there is last video (#6) of this series where you show practical implementation?@@tapasadhikary
@tapasadhikary
@tapasadhikary 9 ай бұрын
@denisecknauer4627 That's bad on me. I had forgotten to create it. Promise to do it in October.
@denisecknauer4627
@denisecknauer4627 9 ай бұрын
@@tapasadhikary look forward to it. Anyways have checked your blog for some examples :)
@tapasadhikary
@tapasadhikary 9 ай бұрын
@denisecknauer4627 great
@anandgarikapati3769
@anandgarikapati3769 2 жыл бұрын
bro...your videos are really helpful...but its taking moretime to reach people...keep making videos on web development fastly as early as possible...great things always takes time
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Thanks, man, for liking my videos. I shall share more in the coming days. Please feel free to share what you like. That's surely helps in spreading the words 🙏
@anandgarikapati3769
@anandgarikapati3769 2 жыл бұрын
@@tapasadhikary you are really dealing with the core concepts of javascript which we might probably not find anywhere in youtube in that simplified manner ...cheers
@tapasadhikary
@tapasadhikary 2 жыл бұрын
Thanks mate 🧡
Things You Must Know about JavaScript Promise APIs - Explained With Examples
28:17
tapaScript by Tapas Adhikary
Рет қаралды 1,9 М.
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 29 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 43 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 62 МЛН
Uncover the Secret to Mastering JavaScript Lexical Environment!
11:40
tapaScript by Tapas Adhikary
Рет қаралды 4,9 М.
Real Steel 2 - Full Teaser Trailer - Paramount Pictures
1:51
Foxstar Media
Рет қаралды 338 М.
What's the best way to load a JavaScript file in HTML? HTML async vs defer
23:36
tapaScript by Tapas Adhikary
Рет қаралды 4,5 М.
JavaScript Callbacks, Promises, and Async / Await Explained
38:54
LearnWebCode
Рет қаралды 40 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 29 МЛН