can async await be used intead of promise in javascript code example
Example 1: promise.all async await
async function fetchABC() {
const [a, b, c] = await Promise.all([a(), b(), c()]);
}
Example 2: nodejs promise async
// Normal Function
function add(a,b){
return a + b;
}
// Async Function
async function add(a,b){
return a + b;
}