What does the following async function return?
async function getData() {
return Promise.resolve('Hello, World!');
}
const result = getData();
console.log(result);
What does the following async function return?
async function getData() {
return Promise.resolve('Hello, World!');
}
const result = getData();
console.log(result);