Skip to main content
100%

Fetching data

✓ Published0🌍 Public
LLove Wessman
Last edited Jan 19, 2022
Created on Jan 19, 2022
Forked from HTML Starter

This example demonstrates asynchronous data fetching in the browser, retrieving a CSV file of CSS named colors from a GitHub gist and logging its contents to the console. It uses the Fetch API’s `fetch()` method and the response object’s `text()` method within an async/await function, followed by a `.then()` promise chain to handle the resolved text. The code shows a minimal setup with no visual output, focusing purely on the network request and text extraction workflow.

AI-generated description

Sample of fetching data

MIT Licensed

Similar vizzes