JavaScript Async/Await Simply Explained

  Рет қаралды 24,723

Software Developer Diaries

Software Developer Diaries

Күн бұрын

Пікірлер: 22
@kopilkaiser8991
@kopilkaiser8991 3 ай бұрын
Thank you for explaining and teaching me this topic. I found it useful and very helpful for learning asynchronous JS.
@TomiokaGiyu4
@TomiokaGiyu4 8 ай бұрын
Actually, using try..catch inside async functions is the proper way to handle errors. You figure out the part that threw the error, modify the error message, and rethrow the created error from the catch block if you need to use then.catch
@lindatochukwu3081
@lindatochukwu3081 5 ай бұрын
hello Ahmad, I am new to programming, pls can u be my mentor?
@helloworldkudasai
@helloworldkudasai Жыл бұрын
thank you.. this is very easy to grasp
@muppallaramoji7871
@muppallaramoji7871 Жыл бұрын
Thank you so much The video explains crisp and clear saw numerous videos but got clarity here 🙏🙏
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Glad it helped! :)
@vishalupadhayay6391
@vishalupadhayay6391 Жыл бұрын
You should add one statement in the video saying "await keyword is used to resolve or reject the promise and as long as it's not resolved/reject the code execution is not blocked. The other code continues execution"
@Prixzlex
@Prixzlex Жыл бұрын
Then how do I make the rest of the code hold till execution of await is completed?
@yt-1161
@yt-1161 3 ай бұрын
Mate I thought .then() would also return a Promise, but here it's not showing that. The promise it's immediately resolved to a value, is this the reason ?
@vladguzun2522
@vladguzun2522 Жыл бұрын
thanks , now it's a bit more clear
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Glad it helped
@StackDeveloper_
@StackDeveloper_ 11 ай бұрын
Brother i have which shall i choose as backend language
@spondoolie6450
@spondoolie6450 3 ай бұрын
node
@aram8639
@aram8639 2 жыл бұрын
I hope you make more videos about web, JavaScript and Python 🐍. I like your explanation and I hope you share some experience about your Job in Germany 🇩🇪 🎉
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 2 жыл бұрын
More to come mate! Thanks for your support :)
@glan-tucan
@glan-tucan 4 ай бұрын
Actually it's not that await .. catch has precedence, is that you already captured the error inside the getBrokenPizza function. To catch it at the module levele you would have to rethrow from the catch block. You can invert the example use then().catch() inside the function and await..catch outside and the one inside the function will still have "precedence" because the error has been captured there
@samucancld
@samucancld Жыл бұрын
good explanation, still hating it, I think observables or promises are way better
@followclout
@followclout Жыл бұрын
Thanks!
@revanslacey
@revanslacey 10 ай бұрын
Nope. Hasn't clicked yet.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 206 М.
When You Shouldn't Use Await Async in .NET
7:51
Nick Chapsas
Рет қаралды 55 М.
JavaScript Global Execution Context Explained!
27:25
Piyush Garg
Рет қаралды 14 М.
What are JavaScript PROMISES? 🤞
12:37
Bro Code
Рет қаралды 93 М.
Async Await vs. Promises - JavaScript Tutorial for beginners
24:30
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
The Power of AbortController in JavaScript
17:56
Software Developer Diaries
Рет қаралды 10 М.