What will be the output of the following code?
async function fetchData() {
const response = await fetch('https://api.example.com/data');
return response.json();
}
fetchData()
.then(data => console.log(data))
.catch(error => console.log('Error:', error));