async/await
is a special syntax to work with promises in a more comfortable fashion.
We use async
keyword to declare a async function that return a Promise, and the await
keyword makes a function wait for a Promise.
Visit the following resources to learn more: