Understanding and Using JavaScript Promises

preview_player
Показать описание
In this tutorial we cover what JavaScript promises are and show you how to use them to code asynchronous JavaScript. We will look at a couple of examples to help this sink in.

Would you like to help keep this channel going?

For more resources on JavaScript:

Full personalized courses on JavaScript:

Tutorials referred to in this video:
Рекомендации по теме
Комментарии
Автор

Bravo! Before I watched your video I was preconditioned that promise in Js is hard to grasp and understand. I got it after 20 min .. amazing content :)

ahmedr.
Автор

Thank you. It's a pleasure to watch such detailed and simplified for understanding materials. Thank you so much for your work.

mattjak
Автор

This concept ain't so easy. It takes multiple iterations to master. I watch your videos more than once. This one is almost excellent!

RameenFallschirmjager
Автор

Don of javascript == Sir, Steven Hancock.

amguruprasath
Автор

Wonderful tutorial on promises. Where is the code of asyncFunction( ) ? I mean the body of asyncFunction( ). Your voice is clear and the way you explain with example code is too good. The best teacher on javascript award goes to you :-) .

ayasswain
Автор

At 23:28, what happens when there is an error in the second .then?
Won't the following .then get executed?
It seems like the control flow moves to .catch whenever an Error is created. Is it so? And .then before .catch doesn't returns a promise, how can it work at all?

sameershrestha
Автор

I really understand what a PROMISE really is because of you. Simple explanation thank you so much..

alexanderalancahutay
Автор

I nearly gave up on Promises until I watched this video. Thank You so much

NotPastelDreams
Автор

I wish we could dine together! We could talk about how to dominate the world with javascript!

RameenFallschirmjager
Автор

Thank you for the deep explanation and simple example of what is promises in JavaScript

germanduterte
Автор

Does console.log(def) at 21:33 need to be asynchronous?

sameershrestha
Автор

Thanks a lot! This was much easier for me to understand compared to other videos I watched

fanuel
Автор

Promises kept, thanks for the lesson, have a good day.

suemendez
Автор

you have created asyncFunction() but why you do NOT show the content of it? I have not understood this lesson from the beginning :(

konstantinkkk
Автор

Excellent explaination Steve, you did not mention that promise.then() / catch() methods return a promise in turn, if I am not wrong.

zameeebasha
Автор

Hi Steve, can you please post the contents of asyncfunc() and asyncfunc2() ?

nikhilkohli
Автор

Beautiful teaching .... well explained!

chrislopezzz
Автор

Thank you for explaining it well. But I just have one question, does the .then functions itself returns a promise? Because you chained the .catch function to the .then function.

PixelTB
Автор

Sir i am not able to understand ..a function that returns promise which converts the given array of string into uppercase and returns the result after n seconds, where n is the length of input array.

mukurajpoot
Автор

getting an error, async function is not defined....help!

sarveshsridhar