Skip to content

Commit 04ce225

Browse files
committed
Code
1 parent 4dd196e commit 04ce225

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

async.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@ console.log("1");
22
console.log("2");
33
setTimeout(() => {
44
console.log("Hello...");
5-
}, 2000);
5+
}, 1000);
66
console.log("3");
77
console.log("4");
88
setTimeout(() => {
99
console.log("Hello...!");
10-
}, 2000);
10+
}, 1000);
11+
12+
function getData(dataId) {
13+
setTimeout(() => {
14+
console.log("Data: ", dataId);
15+
}, 2000);
16+
}
17+
18+
getData(1);
19+
getData(2);
20+
getData(3);

0 commit comments

Comments
 (0)