The fetch() function makes HTTP requests and returns a promise. It's the modern way to load data from servers.
const response = await fetch("/api/users");
const users = await response.json();
console.log(users);
fetch returns a Response object. Call .json() to parse JSON data.