1
00:00:00,780 --> 00:00:02,009
Welcome back.

2
00:00:02,040 --> 00:00:10,020
Before we get into writing our first promise, let's take note about this fact when it comes to promise.

3
00:00:13,100 --> 00:00:14,720
So here we go.

4
00:00:14,990 --> 00:00:22,820
Point number one is when a promise is created first, it is independent state.

5
00:00:22,850 --> 00:00:25,310
That's what we have talked about.

6
00:00:25,340 --> 00:00:30,710
The next step is when a promise is resolved, it is in four failed states.

7
00:00:30,740 --> 00:00:38,960
Again, we have talked about and when a promise is rejected, meaning fail, it is in the rejected state.

8
00:00:39,260 --> 00:00:48,050
And this is the most crucial point we need to bear in mind, which says that when returning a promise

9
00:00:48,050 --> 00:00:55,100
from a function, the function will return a promise, but not the value of the promise.

10
00:00:55,580 --> 00:01:01,070
And the value of the promise will be retained when the promise is resolved.

11
00:01:01,670 --> 00:01:09,200
So if these points are not clear to you, we will come back and then revisit as we move on.

12
00:01:09,290 --> 00:01:15,020
So in the next video, let's start with how we can create our first promise.

