Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data: MDN Colors

Public visualization

Viewing a saved revision (read-only)

5197f4bbae3746b981af3703cf266fcf

Loading and Parsing CSV Data: MDN Colors

0 stars0🌍 Public
JJanet Wesner
Last edited Nov 20, 2021
Created on Nov 20, 2021
Forked from HTML Starter

This example demonstrates how to fetch and display raw CSV data in the browser console. It shows the contents of a named CSS colors dataset loaded from a remote URL, with each line printed as plain text. The program uses the JavaScript `fetch` API to asynchronously request the file from GitHub, then calls `response.text()` to parse the response body. The implementation uses `async`/`await` syntax within a `fetchText` function, and logs the resulting string via `console.log`, making the data inspection straightforward.

AI-generated description

A program that loads and parses some CSV data.