Coding task · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Practice: Fetch API - Fetching Data
Use the Fetch API to retrieve data from a server. fetch() returns a Promise that resolves to a Response object. Use response.json() to parse JSON.
Task
Write an async function that fetches data from an API using fetch(), parses the JSON response, and displays a list of dinosaurs.