What will be the output of the following code?
async function getData() {
return Promise.resolve('Data');
}
(async function() {
const result = await getData();
console.log(result);
})();
What will be the output of the following code?
async function getData() {
return Promise.resolve('Data');
}
(async function() {
const result = await getData();
console.log(result);
})();