I always thought async functions need to contain "await" keyword inside, for example:
async function doTask() {
let total = await CustomFunction(values);
console.log(`Main Total: ${total}`);
}
doTask();
But I also saw some like that define async function without having await as:
GetData = async ( method, url, params) =>
{
Axios.request({
method, url, params
});
}
so what's the point to have async keyword added in front of a function that doesn't have "await" keyword?