There are two web-services.
The request to the second web service can be fulfilled only after the first one is fulfilled.
To wait for the answer we need the await operator.
The await operator can be used only in an async function.
The await operator waits till the async request is fulfilled.
After the first request is fulfilled we can use the result to get the second.
The result of the async function is the Promise object.
We need a Then method to get data from the Promise object.
Let’s check it out.
Random name.
Age.