Week 4 Day 3
# Week 4 Day 3
What is the purpose of Async/Await?
What must you do in order to await a promise inside of a function?
What are some of the primary benefits of Async/Await?
The purpose is to stop the promise until it is completed. It tells the async code not to do anything until the promise is fulfilled.
You must write async into the beginning of the function. This makes it return specifically a promise.
It helps prevent the callback hell, because it goes one at a time. This helps prevent callback hell.
Daily Challenge https://github.com/JordanWilker/Week-4-Day-3