File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Asynchronous Javascript setTimeout, setInterval:
2
+
3
+ console . log ( 22222 ) ;
4
+ console . log ( 33333 ) ;
5
+ console . log ( 44444 ) ;
6
+ console . log ( 55555 ) ;
7
+
8
+ // setTimeOut:
9
+ // ---------------------
10
+ // For call function
11
+ // function timeOut() {
12
+ // console.log("I'm normal set time out function.");
13
+ // }
14
+ // setTimeout(timeOut);
15
+
16
+ // // For setTimeOut keyword in function
17
+ // setTimeout(function () {
18
+ // console.log("Hello se time out");
19
+ // }, 2000)
20
+
21
+ // // For setTimeOut keyword in arrow keyword function
22
+ // setTimeout(() => {
23
+ // console.log("Hi i'm here set time out. ");
24
+ // }, 4000)
25
+
26
+ // setInterval:
27
+ // ---------------------
28
+ setInterval ( ( ) => {
29
+ console . log ( "Hello set interval" ) ;
30
+ } , 1000 ) ; // Press control + c (keyboard) and STOP;
You can’t perform that action at this time.
0 commit comments