-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsync.js
More file actions
29 lines (20 loc) · 673 Bytes
/
Copy pathAsync.js
File metadata and controls
29 lines (20 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// console.log("1");
// console.log('2');
// //Uses for Asynchronus Execution in which we came time after completion of time function run
// setTimeout(()=>{
// console.log('3');
// },4000);
// console.log('4');
// console.log('5');
/*Callback*/ //used for each instruction delay for some time
// function getData(dataId,nextdata){
// setTimeout(()=>{
// console.log("Data:",dataId);
// if(getData){
// nextData(2);
// }
// },2000)
// }
// getData(1,()=>{
// getData(2);
// })