Code QuizAdvanced

Fetching a User from a REST API

A client fetches a user resource but mishandles the async JSON response.

Codejavascript
async function getUser(id) {
  const response = await fetch(`https://api.example.com/users/${id}`);
  const user = response.json();
  console.log(user.name);
  return user;
}

What is the bug in this REST client code?