
fetch(url) makes an HTTP request and returns a Promise. Chain .then(res => res.json()) to parse the JSON response. Use async/await for cleaner syntax: const data = await fetch(url).then(r => r.json()). The Fetch API is built into every modern browser and is the standard way to retrieve data from APIs.
Reference:
TaskLoco™ — The Sticky Note GOAT