What will be the output of the following code?
async function getData() {
const data = await fetch('https://api.example.com/data');
return data.json();
}
async function displayData() {
const result = await getData();
console.log(result);
}
displayData();