Solution Review: Async and Await
Learn the solution to the async and await challenge given in the previous lesson.
We'll cover the following...
Solution
Let’s have a look at the solution code.
100000 500000
Explanation
You already learned how to set the time limit in the Solution Review: Gathering All Promises lesson. We already know the purpose of createTimeOut and logAndTerminate.
Let’s move on to the async-await part. async and await do not affect how we create asynchronous functions, but they largely change the way we use ...
Ask