Async Await vs. Promises - JavaScript Tutorial for beginners
Вставка
- Опубліковано 27 чер 2024
- JavaScript Async Await, how to use them with Promises, and more importantly why?! This is episode 13 of 20 things Javascript Developers Should Know But Probably Don't.
00:00:00 Intro
00:01:04 How Promises work
00:02:18 Await!
00:04:00 Async!
00:05:55 Async/Await vs. then block
00:07:12 Real example with fetch()
00:10:58 6 important points about Async/Await
00:14:20 Error Handling with try/catch
00:20:49 Final thoughts on Async/Await
00:21:22 20,000!
00:21:45 ColorCode Podcast
00:22:22 ColorCode Merchandise Store 👕
00:22:38 New website
00:22:59 UA-cam Shorts
00:23:12 Update on JS Mastery Course
Links mentioned in the video:
ColorCode Etsy Merchandise store:
www.etsy.com/shop/ColorCodeSt...
Episode 11: Asynchronous JavaScript:
• Async JavaScript & Cal...
Episode 12: JavaScript Promises:
• JavaScript Promises -...
JavaScript Promises in 1 Minute:
• JavaScript Promises 👨🏻...
Using Await without Async in JS Modules (MDN):
developer.mozilla.org/en-US/d...
Full playlist here: • 20 Things JavaScript D...
JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't"
by ColorCode.io, Sina Jazayeri
** Announcement **
Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
www.colorcode.io/js-mastery
Async Await 🧑🏻💻 Episode 13 of 20 Things JavaScript Developers Should Know but Probably Don't
go for it
WHICH IDE DO YOU USE
@@Justnadeem bhai guitar sikkha da 😅
What tool are you using for isntant console feedback ?
this video saved me in an interview. I was asked to explain async/await code and remembered what this video taught me
Love it!
I cant be more thankful to you for providing such quality content !! I have never come across any person before who can explain things in sucha smooth wayyyy !! 2023 gonna be a wonderful year !!
Thank you!
This is by far the best Javascript tutorial in my opinion. I did watch JS tutorials on over 100 different channels and couldn't find any explanation that can compete with your explanation so thank you for the great content. You deserve millions of subscribers.
Thank you!
I would suggest that you release "Javascript Mastery" course NOW! As a student, I don't need to go over your entire "Javascript Mastery" course. I just need to watch some of the videos on topics that I am struggling with, so just show us what you have, and charge us, students, on a subscription basis.
Underated chanel 😩 hope this thumb up break UA-cam algorithm 😂
Haha appreciate that
Long awaited, finally allSettled && fulfilled.
Amazing explanation. Thanks so much!
Can't wait for the next episode - would love to see tutorials even.
🙏
Thank you for sharing this tutorial! I got this concept of Javascript more clearly! Hope you keep going this work!! 🌞
Absolute genius....Your way of explaining is just the best on Yt
Your way of explaining is something else (in a good way). I couldn't wrap my head around this topic but after watching this video it's piece of cake. Thank you
Glad it helped!
nearly at 22k a few days into the New Year. Congrats and THANK YOU for such great content.
Thanks Mickey
Really liked the way you make others understand the concepts,repetition is the key.
Thank you
the way you explain things in such an easy and well- structured way is honestly admirable, i was a bit lost and you helped clarify all the ambiguities i had
Thank you!
Glad to see more videos in this series. It's been a while. I blame Craig.
F*ckin Craig
خیلی خوشحالم که توی طبقه 16 با شما اشنا شدم و شمارو شناختم🤩دیدن یک ایرانی که توی نیویورک هستش و برای شرکت بزرگی مثل ادوبی کار میکنه واقعااا به آدم انگیزه زیادی میده💫امیدوارم همیشه موفق باشید و اگه امکانشو داشتید ممنون میشم از مسیری که طی کردید هم توی ویدیویی یا ..... بگید تا مسیر برای برنامه نویس های جونیور داخل ایران که رویای کار توی شرکت های بزرگ رو دارن روشن تر بشه🔥به امید دیدار از نزدیک توی نیویورک ;)
Merci
That is the perfect study materials that you're doing. I've never seen something better. Thanks a lot for your job!
Glad you enjoy it!
Keep coming with these videos...😍
Love your teaching style, thank you for providing high quality lessons/content 🙏🏻
My pleasure!
20 episodes might not be enough, great work again !!
Ok 100
@@ColorCodeio yes yes yes dear sir yes
@@ColorCodeio Go really deep in JS core concepts please.
Honestly i've been learning for just over a year now and I come to your videos when i'm confused with a concept and need to sit down and understand it. I genuinely appreciate your videos and I hope you keep going long into my future career.
Thanks Josh
Joshy lad, fancy seeing you here! Did I share ColorCode with you or did you share it with me?
One thing special about this 20 video series is that you helped most of us in advanced for what we will soon encounter as we move on to take the software developer role in the future. Thank you. Your effort means a lot to me.
Glad to hear that
I am so afraid of this topic, but after you taught it, I finally got how it works. Thanks good sir!
By the way, that coffee is the cherry on top of this video ❤
Excellent!
I can't wait for more content brother. Keep going.👍
More to come!
Your delivery is a masterpiece, you make learning so fun. Thank you so much
Thank you Kevin!
I thought Brad Traversy was my favorite instructor on UA-cam, and I do love his work but I can't wait for your JS course. You don't miss a single step/detail out and that's invaluable. No need to jump around video to video to find a crucial missing piece of information that was missed from a video which got me 80% the way there but not 100%.
Glad to hear it! 🙏
@@ColorCodeio Do you have an idea yet of when it’s scheduled to release?
Thank you very much for a detailed and visually engaging explaination in terms of the animated code on the screen, the montage, and the way you're explaining the topic yourself. I am watching your js async related videos currently and making notes and actually comprehending this not so easy to grasp topic thanks to the way you present your explaination. This is quite a work to put all these pieces together that would result in such a high-quality content. Admire your work and time you put into it, thank you 🙂
So good you might as well make it a 30 part series 😉
Hey Sina!
I just wanted to give you a shoutout and let you know how much I've been enjoying your JavaScript tutorial videos on UA-cam! Seriously, you make learning JavaScript so much more fun and less intimidating than it would be otherwise.
I've struggled to wrap my head around some of these concepts before, but you explain everything in a way that's easy to understand and not at all boring. Plus, you inject some personality and humor into your videos, which makes them even more enjoyable to watch.
Keep up the fantastic work, and looking forward to seeing more awesome videos from you!
Cheers.
Thanks for taking the time to write. Glad to hear all of the above. More videos coming soon.
My favorite place to learn about coding. Thanks for these amazing videos.
glad to see u again bro and Happy New Year 2023 so keep it up good work with JavaScript thx
Thanks dude!
love the quality content....keep it up!
thank you for quality content.
watching this 2 month later your subscribers almost doubled itself! for a good reason!
you gonna have to continue this to a 30 parts series :D
haha maybe, thanks for the sub 🤘
I know these must take a ton of time, but please never stop 😂. These are super helpful and genuinely deserve a lot more views. I'm going through The Odin Project to get into webdev and your videos are both entertaining and educational.
Thanks Patrik. Good to see you here.
really thank you for making it very simple in code with explanation. this is very unrated and exceptional video.
Apart from all the technical side, I love the positive vibe this video delivers! Coding should be fun and enjoyable, very informative video and subscribed. I shall wait for your JS full course as well.
Much appreciated! 🙏
Please continue this series is dope.
For sure
Hey man, just discovered your channel while cramming for a job interview next week. Thanks for the succinct explanations and dope style. Keep it up.
How did your interview go?
Incredible video. Thank you
Thank you!
Love your channel! Thanks 👹
Nice explanation!!!
Thank You Very Much For giving smooth explanation for holy content.... awesome video.
Thankyou for this detailed yet follow along video
Long live from Nepal 🇳🇵
Please keep us this phase of decluttering JavaScript concepts.
Much awaited video. Can you please make projects too on js and nodejs?
This is highest level quality content u are creating I have seen in UA-cam much respect love from India please make more videos on JS absolutely loving it it's more interesting even I have skipped my fab webseries to watch these masterpiece ❤
Thank you so much 😀
HELL YEAH!!! 💪🏽💪🏽💪🏽
Superb Content, you are Awesome.
underrated channel really, thanks for the goods
🙏
just found your channel, very nice and clear tutorials! thanks
Awesome, thank you!
Dude ur awesome!! Thanks for sharing ur knowledge
👍
Audio Code... best name ever for your pod cast
I know is a bad practice but didn't even bother put a catch block on your video, i'm 100% sure the promised of good content will be fullfilled even before watching it :D ! Thank you for your work for the community !
your way of teaching are top tier furthermore impressive
dude, you are doing amazing stuff! thank you and keep going please)
Thank you. More to come soon.
Congratulations on +30k subscribers ❤
Thank you
when is the podcast ready? can't wait for that! you're an excellent teacher btw keep going
Sina dadash damet Garm. First time I heard about asynchronous JavaScript coding was about 4 years ago and I did never completely understood how to use async, await, promise and then blocks until I watched your videos. Good F**** Job.
Merci
Great Lesson
Ty!
Just subbed, watched some of your videos and your are really good att explaining!
Welcome aboard!
you are legend man you helped me
Glad to hear it!
Great videos 👍
Thanks for making me laugh while teaching me how to fulfill my promises! 😊
This video deserves huge views and channel deserves million subscribers
Soon
you are a great guy🙏🙏
Crazyyy! This guy is super sleek and cool. Feel like I'm watching Netflix while watching your videos sir! Super cool!!
Thanks!
I would say it's 13 out of 10 for this video. great content. look forward to next episode.
Thanks!
Hearing Qoli's name kept taking my by surprise and made me smile a few times ahahah Great lesson!
Great tuts!
🙏
@@ColorCodeio for a bit more feedback, I particularly found it useful how you made the connection of between the next, catch functions and the resolve reject. Also, didn't know that I could have an error as the second parameter in next. Really thorough deep-dives, thank you!
your presentation of the topic so nice that i don't have to write it down and go to another site for clarifications and i liked it very much. Thank You > 3 : )
👍
Great Work ♥♥♥♥
Thanks 🔥
Sina doing god's work fr
🙏🙏
Love you explanation
I’m glad
Tales from the reject block. (Podcast name suggestion)
You are amazing men ❤️
thanks for the tips.
You’re welcome
Спасибо за ролики. отличная подача и все понятно 😀
Really appreciate you putting these videos . These are really the best tutorial and is helping alot also can you please mention the actual date of the course you gonna launch?
Always support🎉useful channel!
🙏
Thank you ❤
Finally completed the series. waiting for new video.
Billion subscribers will be here one day. What a quality ❤️
Amasing content! Really, thank you, sir, for making this world better with your videos! BTW, how about some Angular videos if it's possible?
Thank you so much for your valuable lessons
You're welcome!
Thank you dear, you are the best.😘
You're welcome
First Comment 👍👍👍
I was waiting for a long time, Thank You Boss,
🤝
thank you senpai ^^
عشت ياكبير
thank yo so much, your are the best
🙏🙏
tbh, this series deserves millions of views for all the devs out there who want to sort such js concepts out
Thanks a lot for the detailed information about async/await.
I was struggling for a week to understand using fetch inside a loop. Now I know how to use the async/await .. if it is possible, please create a short video about using async/await inside a loop ,
Thanks and subscribed !
Good idea. I'll make it.
Thanks!
JavaScript Async/Await; beautifully presented. Thanks, Sina
{2023-06-21}
Will be interesting a discussion about namespaces, in general, not just the namespace of typescript or Javascript. I didn't find any common dominant opinion in the community, and is being hard to find topics talking about it, if it's a bad practice, or a good one, if you can abuse or not, etc. In my opinion i love to put functions inside namespaces on my personal projects.
thanks man
Your videos are amazing. I'm watching 3d in a row. Now async code is not a mess for me. Huge thank you. Also throughout all these videos I was wondering what ide are you using?
Chrome DevTools and RunJS: runjs.app/colorcode
46&2 ״just ahead of me” ☺️
🤘🏼
I didn't know Stanley Tucci knew JS so well... thanks for the content..
🍝
maaan , i know i'am a bit late ,but i fuckin love you man , this playlist is the best thing that ever happened to me. it was realy helpful . (plus the qoli thing is really funny😭😭😭😭😭😭😭😭 )
Very quality content! It'd great if you could show how async/await works under the hood
I'm curious about this as well. How does resolve get set? When an async function returns a promise, how does the caller handle that?