Javascript Promises and async/await Tutorial

preview_player
Показать описание
Promises are Javascript constructs which allow us to perform asynchronous calls without blocking the UX, they are designed for operations that include a lot of waitings such as network requests or timers.

In this video we will learn about promise and how we use them coming up

in order to discuss promise and why we cme up with them we need to explain how we used to do asynchronous stuff… if you want to learn more about difference between asynchronous and synchronous click this video.. This video explains the async implementation.

0:00 Intro
4:30 callback
8:20 reference http-server
10:45 promises then catch
18:00 finally
18:50 postgres javascript
19:40 async await
25:50 async vs sync

Source code

Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

Jump codes
4:30 callback
8:20 reference http-server
10:45 promises then catch
18:00 finally
18:50 postgres javascript
19:40 async await
25:50 async vs sync

hnasr
Автор

Omg I ❤️ your style ! I smiled a lot and as a bonus I finally understood what this was about. Congratulations! 👏👏

anonymous.youtuber
Автор

The only tutorial that I check if its long as it won't be enough, this is really interesting and answering lots of questions! :D thanks a million

fatimaal-zahraa
Автор

Quick and to the point. You should call actual API's on a future vid. I think you'll get more views since it will be more realistic. Keep doing what you are doing!

Davieu
Автор

Dear God, you're so funny and interesting. I enjoyed your tutorial.

ravenMK_
Автор

Excellent video thanks. First time all of this really make any sense

jacobusstrydom
Автор

There is a serious shortage of high quality (meaning you) videos with frankly speaking on Javascript touch events. Sure event bubbling there are some, and capturing, but really focus on touchevents like touchMove, scroll preventDefault, stopPropogation. Looking at hammer.js, interact.js PEP pointer events on mobile and the like. Everyone uses these but very few resources. Might want to look at requestAnimationFrame and requestIdleCllback in it too if it was a deep dive video. Mobile touchevents, in general, are so complex you could make a defacto video I cant send new interns. I know I'd like it.

augmentos
Автор

man you are awesome! thanks for this, your new sub

shabnamnaaz
Автор

You are funny, i like to watch your video

rfojrmn
Автор

Ty for the video, watched it to see the history and the diff. Of async/await (learning javascript) but I understand c# cause of this i prefer await async over promises :p

shi-woonyi
Автор

Could you please do a video for asynchronous and real parallel IO in server side JS . Thanks in adv .

sangeethamuchi
Автор

Don't keep white background. It's night and I am almost blind

adityaranigaon
Автор

Cool construct...but I failed to understand the use of it.

empuraan