0 / 60 seg.

What does the following async function return?

async function fetchData() {
  try {
    const response = await fetch('https://api.example.com/data');
    return response.json();
  } catch (error) {
    throw new Error('Failed to fetch data');
  }
}
fetchData()
  .then(data => console.log(data))
  .catch(error => console.log('Error:', error));