Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
JJaKokosz
Last edited Mar 23, 2020
Created on Mar 23, 2020
Forked from Cars Report

This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and cost as formatted lines. It first presents a “loading…” message, then asynchronously loads a hardcoded JSON dataset via a Promise and setTimeout in `getCars.js`. The report is generated using array methods (`filter`, `map`, `join`) in `generateReport.js`, with the `formatCar` function composing each line. The React app updates the DOM’s text content directly through `document.getElementById`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed