1
00:00:01,010 --> 00:00:08,150
Now that we know the differences between synchronous and asynchronous programming in this video and

2
00:00:08,150 --> 00:00:13,250
the upcoming one, let's focus on asynchronous programming.

3
00:00:13,550 --> 00:00:20,280
So in this particular video, we will have a look at ways of writing async code.

4
00:00:20,300 --> 00:00:22,100
So let's get started.

5
00:00:22,130 --> 00:00:29,930
Well, the first option that we can use to write async code is what we call set timeout.

6
00:00:29,930 --> 00:00:33,590
And for this method, we have used it before.

7
00:00:33,620 --> 00:00:40,570
As you move on, we are going to take each of these options and debut more with actual code.

8
00:00:40,580 --> 00:00:42,440
So let's proceed.

9
00:00:42,770 --> 00:00:49,100
The next option that we can use to write async code is what we call callback.

10
00:00:49,220 --> 00:00:56,060
And apart from callback, we can also use what is called promise and after promise.

11
00:00:56,060 --> 00:01:03,270
You also have newly emerged feature in JavaScript and that is what you call async await.

12
00:01:03,290 --> 00:01:08,630
So all these methods we can use to write async programming.

13
00:01:09,170 --> 00:01:14,350
So as you move on, we are going to take each of these to die more like I said.

14
00:01:14,360 --> 00:01:21,860
So then this video, let's start with callback because for set timeout, we have talked about it before,

15
00:01:21,860 --> 00:01:26,060
so let's continue with callbacks in the next video.

