-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallbacktask.js
More file actions
74 lines (68 loc) · 1.26 KB
/
callbacktask.js
File metadata and controls
74 lines (68 loc) · 1.26 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
function launchapplication (b)
{
setTimeout(() => {
console.log("Application opened");
b()
}, 500);
}
function Login (a)
{
setTimeout(() => {
console.log("Login with valid user name and password");
a()
}, 1500);
}
function searchitem (c)
{
setTimeout(() => {
console.log("Product is searched");
c()
}, 2000);
}
function reviewproduct (d)
{
setTimeout(() => {
console.log("Product is reviewed");
d()
}, 3000);
}
function Addtocart (e)
{
setTimeout(() => {
console.log(" Product is added to cart");
e()
}, 3500);
}
function Placeorder (f)
{
setTimeout(() => {
console.log(" Product send for order");
f()
}, 200);
}
function Payment (g)
{
setTimeout(() => {
console.log(" Payment initaited to place order");
g()
}, 100);
}
function Success ()
{
setTimeout(() => {
console.log(" Product order ");
}, 300);
}
launchapplication(()=>{
Login(()=>{
searchitem(()=>{
reviewproduct(()=>{
Addtocart(()=>{
Placeorder(()=>{
Payment(Success)
})
})
})
})
})
})