MCPcopy Create free account
hub / github.com/coderarmy-notes/mern-stack-course / pickupOrder

Function pickupOrder

03JS/Day18/index.js:35–43  ·  view source on GitHub ↗
(orderDetail ,Callback)

Source from the content-addressed store, hash-verified

33
34
35function pickupOrder(orderDetail ,Callback){
36 console.log(`Delivery boy is on way to pickup order from ${orderDetail.restaurant_location} `);
37
38 setTimeout(()=>{
39 console.log("I have picked up the order");
40 orderDetail.received = true;
41 Callback(orderDetail);
42 },3000);
43}
44
45
46function deliverOrder(orderDetail){

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected