async await 2 functions code example
Example 1: await all pronmises
Promise.all([promise1, promise2, promise3]).then(function(values) {
console.log(values);
});
Example 2: async await arrow function
YourAsyncFunctionName = async (value) => {
/* Code goes here */
}