In the code given below, there are two asynchronous operations placeOrder
and showOrderStatus
. Create a function checkout()
and use async/await
to invoke both placeOrder
and showOrderStatus
such that showOrderStatus
should be invoked only after the completion of placeOrder
.